Linux.do
@@ -46,4 +51,4 @@ const servers = ref([])
\ No newline at end of file
+
diff --git a/turbo.json b/turbo.json
new file mode 100644
index 0000000..174a10a
--- /dev/null
+++ b/turbo.json
@@ -0,0 +1,9 @@
+{
+ "$schema": "https://turbo.build/schema.json",
+ "tasks": {
+ "dev": {
+ "cache": false,
+ "persistent": true
+ }
+ }
+}
diff --git a/vite.config.js b/vite.config.js
index 171bc3b..2495d40 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,16 +1,22 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
+import * as path from "node:path";
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
+ resolve: {
+ alias: {
+ '@': path.resolve(__dirname, './src')
+ }
+ },
server: {
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
- rewrite: (path) => path.replace(/^\/api/, '')
+ // rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
-})
\ No newline at end of file
+})