refactor: extract empty state and update basepath to /app/
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-02-06 20:41:50 +08:00
parent 0fc57ac637
commit 6411268090
7 changed files with 60 additions and 45 deletions

View File

@@ -15,6 +15,7 @@ const dirname = typeof __dirname !== 'undefined' ? __dirname : path.dirname(file
// More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
export default defineConfig({
base: '/app/',
plugins: [tanstackRouter({
target: 'react',
autoCodeSplitting: true,
@@ -26,7 +27,7 @@ export default defineConfig({
},
server: {
proxy: {
'/api': 'http://10.0.0.10:8000',
'/app/api': 'http://10.0.0.10:8000',
},
host: '0.0.0.0',
port: 5173,
@@ -36,8 +37,8 @@ export default defineConfig({
projects: [{
extends: true,
plugins: [
// The plugin will run tests for the stories defined in your Storybook config
// See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
// The plugin will run tests for the stories defined in your Storybook config
// See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
storybookTest({
configDir: path.join(dirname, '.storybook'),
}),