mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
27 lines
628 B
TypeScript
27 lines
628 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { getDirname } from '@adonisjs/core/helpers';
|
|
import inertia from '@adonisjs/inertia/client';
|
|
import react from '@vitejs/plugin-react';
|
|
import adonisjs from '@adonisjs/vite/client';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
inertia({ ssr: { enabled: true, entrypoint: 'inertia/app/ssr.tsx' } }),
|
|
react(),
|
|
adonisjs({
|
|
entrypoints: ['inertia/app/app.tsx'],
|
|
reload: ['resources/views/**/*.edge'],
|
|
}),
|
|
],
|
|
|
|
/**
|
|
* Define aliases for importing modules from
|
|
* your frontend code
|
|
*/
|
|
resolve: {
|
|
alias: {
|
|
'~/': `${getDirname(import.meta.url)}/inertia/`,
|
|
},
|
|
},
|
|
});
|