Skip to content

Commit

Permalink
Merge pull request #164 from PermanentOrg/storybook-apache-config
Browse files Browse the repository at this point in the history
Add Storybook directory to Apache config
  • Loading branch information
meisekimiu authored Jan 14, 2025
2 parents 22423c5 + e1d00b3 commit 4a4fdcc
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/etc/apache2/sites-available/dev.permanent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@
RewriteRule ^ index.html [L]
</Directory>

# Static Storybook Config
Alias /storybook /data/www/mdot/storybook
<Directory "/data/www/mdot/storybook">
Require all granted
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
DirectoryIndex index.html
</Directory>

ErrorLog "/var/log/permanent/error.log"
CustomLog "/var/log/permanent/access.log" vhost_combined
</VirtualHost>
Expand Down
9 changes: 9 additions & 0 deletions templates/etc/apache2/sites-available/local.permanent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@
RewriteRule ^(.*)$ index.html [L,QSA]
</Directory>

# Static Storybook Config
Alias /storybook /data/www/mdot/storybook
<Directory "/data/www/mdot/storybook">
Require all granted
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
DirectoryIndex index.html
</Directory>

RewriteRule ^/$ /app [last,redirect]

ErrorLog "/var/log/permanent/error.log"
Expand Down
9 changes: 9 additions & 0 deletions templates/etc/apache2/sites-available/prod.permanent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@
RewriteRule ^ index.html [L]
</Directory>

# Static Storybook Config
Alias /storybook /data/www/mdot/storybook
<Directory "/data/www/mdot/storybook">
Require all granted
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
DirectoryIndex index.html
</Directory>

ErrorLog "/var/log/permanent/error.log"
CustomLog "/var/log/permanent/access.log" vhost_combined

Expand Down
9 changes: 9 additions & 0 deletions templates/etc/apache2/sites-available/staging.permanent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@
RewriteRule ^ index.html [L]
</Directory>

# Static Storybook Config
Alias /storybook /data/www/mdot/storybook
<Directory "/data/www/mdot/storybook">
Require all granted
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
DirectoryIndex index.html
</Directory>

ErrorLog "/var/log/permanent/error.log"
CustomLog "/var/log/permanent/access.log" vhost_combined
</VirtualHost>
Expand Down

0 comments on commit 4a4fdcc

Please sign in to comment.