vite: allow setting PORT envvar

This commit is contained in:
Alex Gleason 2024-02-11 16:39:45 -06:00
parent 6e0cb369dc
commit b9c771a369
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -27,7 +27,7 @@ export default defineConfig(({ command }) => ({
},
assetsInclude: ['**/*.oga'],
server: {
port: 3036,
port: Number(process.env.PORT ?? 3036),
},
optimizeDeps: {
exclude: command === 'serve' ? ['@soapbox.pub/wasmboy'] : [],