|
1 | 1 | Application.put_env(:sample, Example.Endpoint, |
2 | 2 | http: [ip: {127, 0, 0, 1}, port: 5001], |
| 3 | + adapter: Bandit.PhoenixAdapter, |
3 | 4 | server: true, |
4 | 5 | live_view: [signing_salt: "aaaaaaaa"], |
5 | 6 | secret_key_base: String.duplicate("a", 64) |
6 | 7 | ) |
7 | 8 |
|
8 | 9 | Mix.install( |
9 | 10 | [ |
10 | | - {:plug_cowboy, "~> 2.5"}, |
| 11 | + {:bandit, "~> 1.8"}, |
11 | 12 | {:jason, "~> 1.0"}, |
12 | | - {:phoenix, "~> 1.7"}, |
| 13 | + {:phoenix, "~> 1.8"}, |
| 14 | + {:phoenix_html, "~> 4.0"}, |
13 | 15 | # please test your issue using the latest version of LV from GitHub! |
14 | 16 | {:phoenix_live_view, |
15 | 17 | github: "phoenixframework/phoenix_live_view", branch: "main", override: true} |
@@ -42,6 +44,8 @@ defmodule Example.HomeLive do |
42 | 44 | </script> |
43 | 45 | <script src="/assets/phoenix_live_view/phoenix_live_view.js"> |
44 | 46 | </script> |
| 47 | + <script src="/assets/phoenix_html/phoenix_html.js"> |
| 48 | + </script> |
45 | 49 | <%!-- uncomment to use enable tailwind --%> |
46 | 50 | <%!-- <script src="https://cdn.tailwindcss.com"></script> --%> |
47 | 51 | <script> |
@@ -93,6 +97,7 @@ defmodule Example.Endpoint do |
93 | 97 |
|
94 | 98 | plug Plug.Static, from: {:phoenix, "priv/static"}, at: "/assets/phoenix" |
95 | 99 | plug Plug.Static, from: {:phoenix_live_view, "priv/static"}, at: "/assets/phoenix_live_view" |
| 100 | + plug Plug.Static, from: {:phoenix_html, "priv/static"}, at: "/assets/phoenix_html" |
96 | 101 |
|
97 | 102 | plug(Example.Router) |
98 | 103 | end |
|
0 commit comments