update
This commit is contained in:
@@ -16,8 +16,9 @@ let proxy = {
|
|||||||
'/api': apiProxy,
|
'/api': apiProxy,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const basename = isDev ? undefined : `${pkgs.basename}`;
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: isDev ? undefined : pkgs.basename,
|
base: basename,
|
||||||
integrations: [
|
integrations: [
|
||||||
mdx(),
|
mdx(),
|
||||||
react(), //
|
react(), //
|
||||||
@@ -26,6 +27,9 @@ export default defineConfig({
|
|||||||
|
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
|
define: {
|
||||||
|
basename: JSON.stringify(basename || ''),
|
||||||
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 7008,
|
port: 7008,
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
|
|||||||
Reference in New Issue
Block a user