mirror of
https://github.com/Damillora/Shioriko.git
synced 2025-02-23 17:33:39 +00:00
25 lines
543 B
TypeScript
25 lines
543 B
TypeScript
import { sveltekit } from "@sveltejs/kit/vite";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit()],
|
|
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
additionalData: '@use "src/variables.scss" as *;',
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
allowedHosts: ["5173.shinosawa.nanao.moe"],
|
|
proxy: {
|
|
// string shorthand:
|
|
// http://localhost:5173/foo
|
|
// -> http://localhost:4567/foo
|
|
'/api': 'http://localhost:5050',
|
|
'/data': 'https://booru.nanao.moe',
|
|
}
|
|
}
|
|
});
|