update website
This commit is contained in:
22
vite.config.js
Normal file
22
vite.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import path from 'path'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: process.env.VITE_APP_BASE_URL || '/',
|
||||
plugins: [react(),tailwindcss()],
|
||||
assetsInclude: ['**/*.md'],
|
||||
define: {
|
||||
global: 'window',
|
||||
'process.env': {}, // Define process.env as an empty object
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
// Alias 'buffer' to 'buffer/index.js' for browser compatibility
|
||||
'buffer': 'buffer/index.js',
|
||||
},
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user