🔧 Enable storybook to be served from a subdir

This commit is contained in:
Belén Albeza 2024-08-01 10:44:44 +02:00
parent f683d65990
commit deef8abca5
3 changed files with 9 additions and 4 deletions

View file

@ -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;