this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Improve formatting of TODO instructions

authored by

Peter Bacon Darwin and committed by
Victor Berchet
690b84d9 a8248876

+35 -39
+35 -39
TODO.md
··· 11 11 - figure out the assets 12 12 - copy the template folders 13 13 14 - ## Install: 14 + ## Install 15 15 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 18 18 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 + }; 20 27 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 + ``` 32 30 33 31 - add "node-url": "npm:url@^0.11.4" to the package.json 34 - 35 32 - add a wrangler.toml int the generated app 36 33 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" 41 38 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 46 43 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 + ``` 50 47 51 48 - Build the builder 52 49 53 - ``` 54 - pnpm --filter builder build:watch 55 - ``` 50 + ```sh 51 + pnpm --filter builder build:watch 52 + ``` 56 53 57 54 - To build for workers: 55 + - Build the next app once: 58 56 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 + ``` 64 60 65 - Then you can skip building the next app 61 + - Then you can skip building the next app 66 62 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 + ```