first commit
This commit is contained in:
15
frontend/vite.config.js
Normal file
15
frontend/vite.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/* eslint-env node */
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
const allowedHosts = (process.env.VITE_ALLOWED_HOSTS || '')
|
||||
.split(',')
|
||||
.map((host) => host.trim())
|
||||
.filter(Boolean);
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
allowedHosts: ['localhost', '127.0.0.1', 'booklibra.wisecolt-panda.net', ...allowedHosts]
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user