Skip to content

Commit aa50ad1

Browse files
Merge pull request #1288 from CleverCloud/storybook/small-config-tweaks
Storybook: remove unused `RewriteRule` from `.htaccess`
2 parents d1bfd5b + be7f216 commit aa50ad1

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.storybook/.htaccess

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
55
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
66
RewriteRule ^ - [L]
77

8-
# If the requested resource doesn't exist, use index.html
9-
RewriteRule ^ /index.html
10-
118
<IfModule mod_headers.c>
129
<FilesMatch "\.(js|html)$">
1310
Header set Cache-Control "no-cache"

.storybook/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { setCustomElementsManifest } from '@storybook/web-components';
33
import 'github-markdown-css/github-markdown.css';
44
import 'highlight.js/styles/vs.css';
55
// @ts-ignore not worth helping TS understand this is valid since we don't need to type check this module
6-
// eslint-disable-next-line import/no-unresolved
6+
// eslint-disable-next-line import/no-unresolved, n/no-missing-import
77
import customElementsManifest from '../dist/custom-elements.json';
88
import { AutodocsTemplate } from '../src/stories/lib/autodocs-template.jsx';
99
import '../src/stories/lib/i18n-control.js';

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default [
6666
'wds/**/*.js',
6767
'src/stories/lib/smart-auth-plugin.js',
6868
'test-mocha/**/*.*js',
69+
'.storybook/**/*.js',
6970
],
7071
languageOptions: {
7172
globals: {

0 commit comments

Comments
 (0)