Skip to content

Commit 17a9924

Browse files
Improve formatting of TODO instructions
1 parent a78836c commit 17a9924

File tree

1 file changed

+35
-39
lines changed

1 file changed

+35
-39
lines changed

TODO.md

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,59 +11,55 @@ DONE:
1111
- figure out the assets
1212
- copy the template folders
1313

14-
## Install:
14+
## Install
1515

16-
- npx create-next-app@latest <app-name> --use-npm
17-
(use npm to avoid symlinks)
16+
- `npx create-next-app@latest <app-name> --use-npm` (use npm to avoid symlinks)
17+
- update next.config.mjs as follows
1818

19-
- update next.config.mjs as follow
19+
```typescript
20+
/** @type {import('next').NextConfig} */
21+
const nextConfig = {
22+
output: "standalone",
23+
experimental: {
24+
serverMinification: false,
25+
},
26+
};
2027

21-
````
22-
/** @type {import('next').NextConfig} */
23-
const nextConfig = {
24-
output: "standalone",
25-
experimental: {
26-
serverMinification: false,
27-
},
28-
};
29-
30-
export default nextConfig;
31-
```
28+
export default nextConfig;
29+
```
3230

3331
- add "node-url": "npm:url@^0.11.4" to the package.json
34-
3532
- add a wrangler.toml int the generated app
3633

37-
```
38-
#:schema node_modules/wrangler/config-schema.json
39-
name = "api"
40-
main = ".worker-next/index.mjs"
34+
```toml
35+
#:schema node_modules/wrangler/config-schema.json
36+
name = "api"
37+
main = ".worker-next/index.mjs"
4138

42-
compatibility_date = "2024-08-29"
43-
compatibility_flags = ["nodejs_compat_v2"]
44-
workers_dev = true
45-
minify = false
39+
compatibility_date = "2024-08-29"
40+
compatibility_flags = ["nodejs_compat_v2"]
41+
workers_dev = true
42+
minify = false
4643

47-
# Use the new Workers + Assets to host the static frontend files
48-
experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
49-
```
44+
# Use the new Workers + Assets to host the static frontend files
45+
experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
46+
```
5047

5148
- Build the builder
5249

53-
```
54-
pnpm --filter builder build:watch
55-
```
50+
```sh
51+
pnpm --filter builder build:watch
52+
```
5653

5754
- To build for workers:
55+
- Build the next app once:
5856

59-
Build the next app once:
60-
61-
```
62-
node /path/to/poc-next/builder/dist/index.mjs && npx wrangler dev
63-
```
57+
```sh
58+
node /path/to/poc-next/builder/dist/index.mjs && npx wrangler dev
59+
```
6460

65-
Then you can skip building the next app
61+
- Then you can skip building the next app
6662

67-
```
68-
SKIP_NEXT_APP_BUILD=1 node /path/to/poc-next/builder/dist/index.mjs && npx wrangler dev
69-
```
63+
```sh
64+
SKIP_NEXT_APP_BUILD=1 node /path/to/poc-next/builder/dist/index.mjs && npx wrangler dev
65+
```

0 commit comments

Comments
 (0)