mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 21:27:54 +08:00
36 lines
622 B
TypeScript
36 lines
622 B
TypeScript
import dts from 'vite-plugin-dts';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: ['src/index.ts'],
|
|
name: '@immich/kysely-adapter-cloudflare',
|
|
formats: ['es'],
|
|
},
|
|
rolldownOptions: {
|
|
output: {
|
|
dir: 'dist',
|
|
},
|
|
},
|
|
ssr: true,
|
|
},
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
ssr: {
|
|
noExternal: /^src.*$/,
|
|
},
|
|
test: {
|
|
server: {
|
|
deps: {
|
|
fallbackCJS: true,
|
|
},
|
|
},
|
|
env: {
|
|
TZ: 'UTC',
|
|
},
|
|
},
|
|
plugins: [dts({ entryRoot: 'src', tsconfigPath: './tsconfig.json' })],
|
|
});
|