File tree Expand file tree Collapse file tree 4 files changed +37
-89
lines changed Expand file tree Collapse file tree 4 files changed +37
-89
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Builder
2
+
3
+ ## TODO
4
+
5
+ - move the wrangler.toml to the templates
6
+
7
+ DONE:
8
+
9
+ - wrangler alias
10
+ - figure out the assets
11
+ - copy the template folders
12
+
13
+ ## Open next [ example app] ( https://github.com/sst/open-next/tree/main/example )
14
+
15
+ Changes:
16
+
17
+ - App: Update package.json
18
+
19
+ ``` text
20
+ "scripts": {
21
+ "dev": "next dev",
22
+ ...
23
+ },
24
+ "dependencies": {
25
+ "next": "^14.2.11",
26
+ "next-auth": "latest",
27
+ ...
28
+ },
29
+ "devDependencies": {
30
+ "wrangler": "^3.78.6"
31
+ ...
32
+ }
33
+ ```
34
+
35
+ - Build the app
36
+
37
+ - Serve with ` WRANGLER_BUILD_CONDITIONS="" WRANGLER_BUILD_PLATFORM="node" pnpm wrangler dev `
Original file line number Diff line number Diff line change @@ -3,7 +3,5 @@ name = "api"
3
3
main = " .worker-next/index.mjs"
4
4
compatibility_date = " 2024-09-16"
5
5
compatibility_flags = [" nodejs_compat_v2" ]
6
- workers_dev = true
7
- minify = false # let's disable minification for easier debuggability
8
6
9
7
experimental_assets = { directory = " .worker-next/assets" , binding = " ASSETS" }
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ main = ".worker-next/index.mjs"
4
4
5
5
compatibility_date = " 2024-08-29"
6
6
compatibility_flags = [" nodejs_compat_v2" ]
7
- workers_dev = true
8
- minify = false
9
7
10
8
# Use the new Workers + Assets to host the static frontend files
11
9
experimental_assets = { directory = " .worker-next/assets" , binding = " ASSETS" }
You can’t perform that action at this time.
0 commit comments