Skip to content

Commit 5fe0b83

Browse files
author
Dale Nguyen
committed
update build path
1 parent acc20ec commit 5fe0b83

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ai/vite.config.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ export default defineConfig(({ mode }) => {
2525
analog({
2626
nitro: {
2727
output: {
28-
dir: "./dist/ai/analog/public",
29-
serverDir: "./dist/ai/analog/public/_worker.js",
28+
// this will generate the compiled files under
29+
// ai/dist & the worker files will be under ai/dist/_worker.js folder
30+
// test the build locally for cloudflare:
31+
// BUILD_PRESET=cloudflare-pages npx nx build ai
32+
dir: "./dist",
33+
serverDir: "./dist/_worker.js",
3034
},
3135
},
3236
}),

0 commit comments

Comments
 (0)