Skip to content

Commit 84bfc5f

Browse files
committed
feat: allow to use the prod api in dev
1 parent a96ecf5 commit 84bfc5f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/frontend/nuxt.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ export default defineNuxtConfig({
100100
},
101101
nitro: {
102102
devProxy: {
103-
'/api': 'http://localhost:8000/api',
103+
'/api': {
104+
// Change to https://blueprint.zip/api to use the production API
105+
// Local API is http://localhost:8000/api
106+
target: 'http://localhost:8000/api',
107+
changeOrigin: true,
108+
},
104109
'/browse/sitemap.xml': 'http://localhost:8000/browse/sitemap.xml',
105110
'/yay': 'https://blueprint.zip/yay',
106111
},

0 commit comments

Comments
 (0)