vite: allow setting PORT envvar
This commit is contained in:
parent
6e0cb369dc
commit
b9c771a369
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export default defineConfig(({ command }) => ({
|
||||||
},
|
},
|
||||||
assetsInclude: ['**/*.oga'],
|
assetsInclude: ['**/*.oga'],
|
||||||
server: {
|
server: {
|
||||||
port: 3036,
|
port: Number(process.env.PORT ?? 3036),
|
||||||
},
|
},
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: command === 'serve' ? ['@soapbox.pub/wasmboy'] : [],
|
exclude: command === 'serve' ? ['@soapbox.pub/wasmboy'] : [],
|
||||||
|
|
Loading…
Reference in a new issue