diff options
| author | Pitu <[email protected]> | 2021-06-18 01:46:25 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-06-18 01:46:25 +0900 |
| commit | 142028a058d8dbdc82286b8fc01776957b3e1a96 (patch) | |
| tree | e6465d2b9de0950a792835d5cddb89d19a3f51d3 | |
| parent | feat: prevent running without a domain (diff) | |
| download | host.fuwn.me-142028a058d8dbdc82286b8fc01776957b3e1a96.tar.xz host.fuwn.me-142028a058d8dbdc82286b8fc01776957b3e1a96.zip | |
feat: make nuxt use the new domain .env
| -rw-r--r-- | nuxt.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuxt.config.js b/nuxt.config.js index 8e2d953..3600f08 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -63,7 +63,7 @@ export default { development: process.env.NODE_ENV !== 'production' }, axios: { - baseURL: `${process.env.NODE_ENV === 'production' ? '' : 'http://localhost:5000'}/api` + baseURL: `${process.env.NODE_ENV === 'production' ? process.env.DOMAIN : 'http://localhost:5000'}/api` }, build: { extractCSS: process.env.NODE_ENV === 'production', |