Skip to content

Commit 42c18db

Browse files
committed
chore: modify the docs public path
1 parent 77521c2 commit 42c18db

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/.vitepress/config/shared.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { defineConfig } from 'vitepress';
22
import { whyframe } from '@whyframe/core';
33
import { whyframeVue } from '@whyframe/vue';
44

5+
const isProd = process.env.NODE_ENV === 'production';
6+
57
export const shared = defineConfig({
68
title: 'Responsive Toolkit',
79
description:
@@ -22,6 +24,7 @@ export const shared = defineConfig({
2224
},
2325

2426
vite: {
27+
base: !isProd ? '/' : '/responsive-toolkit/',
2528
plugins: [
2629
whyframe({
2730
/**

docs/eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export default defineConfig(
3737
varsIgnorePattern: '^_',
3838
},
3939
],
40+
41+
'node/prefer-global/process': 'off',
4042
},
4143
},
4244
);

0 commit comments

Comments
 (0)