mirror of
https://github.com/penpot/penpot.git
synced 2025-01-04 13:50:12 -05:00
🔧 Enable storybook to be served from a subdir
This commit is contained in:
parent
f683d65990
commit
deef8abca5
3 changed files with 9 additions and 4 deletions
|
@ -149,6 +149,11 @@ http {
|
|||
proxy_pass http://127.0.0.1:6060/ws/notifications;
|
||||
}
|
||||
|
||||
location /storybook {
|
||||
alias /home/penpot/penpot/frontend/storybook-static/;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location / {
|
||||
location ~ ^/github/penpot-files/(?<template_file>[a-zA-Z0-9\-\_\.]+) {
|
||||
proxy_pass https://raw.githubusercontent.com/penpot/penpot-files/main/$template_file;
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"e2e:server": "node ./scripts/e2e-server.js",
|
||||
"e2e:test": "playwright test --project default",
|
||||
"storybook:compile": "yarn run compile && clojure -M:dev:shadow-cljs compile storybook",
|
||||
"storybook:release": "yarn run compile && clojure -M:dev:shadow-cljs compile storybook && yarn run storybook build",
|
||||
"storybook:server": "yarn run storybook dev -p 6006 --no-open",
|
||||
"storybook:watch": "concurrently \"clojure -M:dev:shadow-cljs watch storybook\" \"yarn run storybook:server\" \"yarn run watch\"",
|
||||
"storybook:build": "yarn run storybook:compile && storybook build"
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
import { defineConfig } from "vite";
|
||||
import { configDefaults } from 'vitest/config'
|
||||
import { configDefaults } from "vitest/config";
|
||||
|
||||
import { resolve } from "path";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
test: {
|
||||
exclude: [...configDefaults.exclude, 'target/**', 'resources/**'],
|
||||
environment: 'jsdom'
|
||||
exclude: [...configDefaults.exclude, "target/**", "resources/**"],
|
||||
environment: "jsdom",
|
||||
},
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
"@target": resolve(__dirname, "./target/storybook"),
|
||||
|
|
Loading…
Reference in a new issue