mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -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;
|
proxy_pass http://127.0.0.1:6060/ws/notifications;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /storybook {
|
||||||
|
alias /home/penpot/penpot/frontend/storybook-static/;
|
||||||
|
autoindex on;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
location ~ ^/github/penpot-files/(?<template_file>[a-zA-Z0-9\-\_\.]+) {
|
location ~ ^/github/penpot-files/(?<template_file>[a-zA-Z0-9\-\_\.]+) {
|
||||||
proxy_pass https://raw.githubusercontent.com/penpot/penpot-files/main/$template_file;
|
proxy_pass https://raw.githubusercontent.com/penpot/penpot-files/main/$template_file;
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
"e2e:server": "node ./scripts/e2e-server.js",
|
"e2e:server": "node ./scripts/e2e-server.js",
|
||||||
"e2e:test": "playwright test --project default",
|
"e2e:test": "playwright test --project default",
|
||||||
"storybook:compile": "yarn run compile && clojure -M:dev:shadow-cljs compile storybook",
|
"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: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:watch": "concurrently \"clojure -M:dev:shadow-cljs watch storybook\" \"yarn run storybook:server\" \"yarn run watch\"",
|
||||||
"storybook:build": "yarn run storybook:compile && storybook build"
|
"storybook:build": "yarn run storybook:compile && storybook build"
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import { configDefaults } from 'vitest/config'
|
import { configDefaults } from "vitest/config";
|
||||||
|
|
||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
exclude: [...configDefaults.exclude, 'target/**', 'resources/**'],
|
exclude: [...configDefaults.exclude, "target/**", "resources/**"],
|
||||||
environment: 'jsdom'
|
environment: "jsdom",
|
||||||
},
|
},
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@target": resolve(__dirname, "./target/storybook"),
|
"@target": resolve(__dirname, "./target/storybook"),
|
||||||
|
|
Loading…
Reference in a new issue