generated from template/vite-react-template
test pocket base
This commit is contained in:
@@ -18,7 +18,8 @@ if (!isJsh) {
|
||||
const tailwindcss = await import('@tailwindcss/vite');
|
||||
const defaultPlugin = basicSsl.default;
|
||||
const defaultCssPlugin = tailwindcss.default;
|
||||
plugins.push(defaultCssPlugin(),defaultPlugin());
|
||||
// plugins.push(defaultCssPlugin(),defaultPlugin());
|
||||
plugins.push(defaultCssPlugin());
|
||||
}
|
||||
|
||||
let target = 'https://kevisual.xiongxiao.me';
|
||||
@@ -45,6 +46,13 @@ let proxy = {
|
||||
rewriteWsOrigin: true,
|
||||
cookieDomainRewrite: 'localhost',
|
||||
},
|
||||
'/pocketbase': {
|
||||
target: `http://127.0.0.1:8090/`,
|
||||
rewriteWsOrigin: true,
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/pocketbase/, '/'),
|
||||
},
|
||||
};
|
||||
/**
|
||||
* @see https://vitejs.dev/config/
|
||||
@@ -63,6 +71,7 @@ export default defineConfig({
|
||||
BASE_NAME: JSON.stringify(basename),
|
||||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
|
||||
},
|
||||
envPrefix: 'TEST_',
|
||||
build: {
|
||||
target: 'modules',
|
||||
// lib: {
|
||||
@@ -72,7 +81,7 @@ export default defineConfig({
|
||||
// },
|
||||
},
|
||||
server: {
|
||||
port: 7006,
|
||||
port: 7007,
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
'/api': {
|
||||
|
||||
Reference in New Issue
Block a user