Skip to content

Commit 6f05eef

Browse files
Cludge around npm publish
1 parent 8edc0f8 commit 6f05eef

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
- run: npm run ci
27-
- run: npm publish
27+
- run: npm publish --allow-directory=all
2828
if: github.event_name == 'release' && github.event.action == 'created'
2929
env:
3030
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.storybook/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { StorybookConfig } from '@storybook/react-vite';
22

33
const config: StorybookConfig = {
44
stories: ['../src/**/*.stories.tsx'],
5+
staticDirs: ['../public'],
56
addons: [
67
'@storybook/addon-links',
78
'@storybook/addon-essentials',

public/_headers

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Never serve a stale HTML entry point: it references content-hashed assets
2+
# that are purged on redeploy, which otherwise 404 -> SPA fallback -> a
3+
# text/html response the browser rejects as a module script.
4+
/index.html
5+
Cache-Control: no-cache
6+
/iframe.html
7+
Cache-Control: no-cache
8+
9+
# Content-hashed assets are immutable and safe to cache forever.
10+
/assets/*
11+
Cache-Control: public, max-age=31536000, immutable

0 commit comments

Comments
 (0)