Skip to content

Commit

Permalink
configurable nuxt config
Browse files Browse the repository at this point in the history
  • Loading branch information
florislangeraert committed Dec 5, 2024
1 parent 348d9bb commit aa312dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ services:
build:
context: ./frontend
target: run-dev
env_file:
- ./frontend/.env
ports:
- 24678:24678
- 3000:3000
Expand Down
1 change: 1 addition & 0 deletions frontend/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export API_URL=http://stac-api:8000
6 changes: 3 additions & 3 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export default defineNuxtConfig({
openFetch: {
clients: {
api: {
schema: "https://deltares-fairdata.com/api/api",
schema: process.env.API_URL + "/api",
baseURL: "/api",
},
},
},
routeRules: {
"/api/**": { proxy: "https://deltares-fairdata.com/api/**" },
"/api/**": { proxy: process.env.API_URL + "/api/**" },
},
})
})

0 comments on commit aa312dc

Please sign in to comment.