mirror of
https://github.com/morten-olsen/shipped.git
synced 2026-02-07 23:26:23 +01:00
19 lines
423 B
TypeScript
19 lines
423 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import mdx from "@mdx-js/rollup"
|
|
import path from 'path';
|
|
|
|
const ASSET_URL = process.env.ASSET_URL || '';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: `${ASSET_URL}/`,
|
|
plugins: [react(), mdx()],
|
|
resolve:{
|
|
alias:{
|
|
'@' : path.resolve(__dirname, './src'),
|
|
'node-fetch': 'isomorphic-fetch',
|
|
},
|
|
},
|
|
})
|