diff options
| author | Pitu <[email protected]> | 2019-02-19 23:52:24 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-02-19 23:52:24 +0900 |
| commit | 89a271818ed25b0a17a17dd1d6804e34d1f2ec0f (patch) | |
| tree | 2e63d3b41eeacb8f172f8ee3e1374124b934c6a3 /nuxt.config.js | |
| parent | Create wizard.js (diff) | |
| download | host.fuwn.me-89a271818ed25b0a17a17dd1d6804e34d1f2ec0f.tar.xz host.fuwn.me-89a271818ed25b0a17a17dd1d6804e34d1f2ec0f.zip | |
Switch config to .env
Diffstat (limited to 'nuxt.config.js')
| -rw-r--r-- | nuxt.config.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nuxt.config.js b/nuxt.config.js index b5cc033..9a96ade 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,11 +1,20 @@ +require('dotenv').config(); import autoprefixer from 'autoprefixer'; import serveStatic from 'serve-static'; import path from 'path'; -import config from './config'; export default { server: { - port: config.server.ports.frontend + port: process.env.WEBSITE_PORT + }, + env: { + version: process.env.npm_package_version, + URL: process.env.DOMAIN, + baseURL: `${process.env.DOMAIN}${process.env.ROUTE_PREFIX}`, + serviceName: process.env.SERVICE_NAME, + maxFileSize: process.env.MAX_SIZE, + chunkSize: process.env.CHUNK_SIZE, + maxLinksPerAlbum: process.env.MAX_LINKS_PER_ALBUM }, srcDir: 'src/site/', head: { |