Inside vite.config.ts
, I have:
export default defineConfig({
base: '',
plugins: [react()],
server: {
open: true,
port: 3000,
},
});
Is it possible to access these values, especially the port number, from code? Or perhaps it's better to set these through easily accessible environment variables instead?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/DV5wcv7
Comments
Post a Comment