this repo has no description
0
fork

Configure Feed

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

Add instructions for the open next example

+43 -4
+43 -4
TODO.md
··· 19 19 ```typescript 20 20 /** @type {import('next').NextConfig} */ 21 21 const nextConfig = { 22 - output: "standalone", 23 - experimental: { 24 - serverMinification: false, 25 - }, 22 + output: "standalone", 23 + experimental: { 24 + serverMinification: false, 25 + }, 26 26 }; 27 27 28 28 export default nextConfig; ··· 70 70 ```sh 71 71 SKIP_NEXT_APP_BUILD=1 node /path/to/poc-next/builder/dist/index.mjs && npx wrangler dev 72 72 ``` 73 + 74 + ## Open next [example app](https://github.com/sst/open-next/tree/main/example) 75 + 76 + Changes: 77 + 78 + - App: Patch the next.config.js 79 + - App: Update package.json 80 + 81 + ```text 82 + "scripts": { 83 + "dev": "next dev", 84 + ... 85 + }, 86 + "dependencies": { 87 + "next": "^14.2.11", 88 + "next-auth": "latest", 89 + ... 90 + }, 91 + "devDependencies": { 92 + "node-url": "npm:url@^0.11.4", 93 + "wrangler": "^3.77.0" 94 + ... 95 + } 96 + ``` 97 + 98 + - wrangler, update bundle.ts (based on 3.76.0) 99 + 100 + ```js 101 + //l 354 102 + conditions: [], 103 + platform: "node", 104 + ``` 105 + 106 + The conditions (`export const BUILD_CONDITIONS = ["workerd", "worker", "browser"];`) 107 + would pull browser files that are not traced by nft. 108 + 109 + - Build the app 110 + 111 + - Use the updated wrangler `pnpm --filter wrangler start dev -c /path/to/open-next/example/wrangler.toml`