Skip to content

Commit

Permalink
Add env for apiPath. Removed unused nitro rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-aderr committed Nov 1, 2024
1 parent b7eea2b commit 7a00748
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions mlte/frontend/nuxt-app/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NUXT_PUBLIC_API_PATH=http://localhost:8080/api
1 change: 0 additions & 1 deletion mlte/frontend/nuxt-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ node_modules
.nitro
.cache
.output
.env
dist
.DS_Store
assets/uswds
Expand Down
10 changes: 2 additions & 8 deletions mlte/frontend/nuxt-app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ export default defineNuxtConfig({
ssr: false,
css: ["@/assets/css/styles.css", "@/assets/uswds/css/styles.css"],

nitro: {
routeRules: {
"/api/**": { proxy: "http://localhost:8080/api/**" },
},
},

runtimeConfig: {
public: {
apiPath: "http://localhost:8080/api",
apiPath: "", // Overwritten by `mlte/frontend/nuxt-app/.env`
version: pkg.version,
},
},
});
});

0 comments on commit 7a00748

Please sign in to comment.