Initial commit
Build / run (push) Has been cancelled

This commit is contained in:
maher
2026-05-14 13:42:10 +02:00
commit 511fad8199
4595 changed files with 385164 additions and 0 deletions
Executable
+52
View File
@@ -0,0 +1,52 @@
import {defineConfig, Plugin} from 'vite';
import react from '@vitejs/plugin-react-swc';
import laravel from 'laravel-vite-plugin';
import tsconfigPaths from 'vite-tsconfig-paths';
import replace from '@rollup/plugin-replace';
// override laravel plugin base option (from absolute to relative to html base tag)
function basePath(): Plugin {
return {
name: 'test',
enforce: 'post',
config: () => {
return {
base: '',
};
},
};
}
export default defineConfig({
server: {
host: '0.0.0.0',
hmr: {
host: '0.0.0.0',
},
},
base: '',
resolve: {
preserveSymlinks: true,
},
build: {
sourcemap: true,
rollupOptions: {
external: ['puppeteer'],
},
},
plugins: [
tsconfigPaths(),
react(),
laravel({
input: ['resources/client/main.tsx'],
ssr: ['resources/client/server-entry.tsx'],
refresh: false,
}),
basePath(),
replace({
preventAssignment: true,
__SENTRY_DEBUG__: false,
"import { URL } from 'url'": false,
}),
],
});