Skip to content

Commit

Permalink
fix: vite build
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 31, 2024
1 parent 958df38 commit 9bc80c1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storybook/mock-packages/next-runtime-env/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const env = (key) => process.env[key]
export const PublicEnvScript = (props) => props.children
4 changes: 4 additions & 0 deletions storybook/mock-packages/next-runtime-env/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "next-runtime-env",
"main": "index.js"
}
4 changes: 4 additions & 0 deletions storybook/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export default defineConfig({
'next/link': resolve(__dirname, './mock-packages/next_link'),
'next/dynamic': resolve(__dirname, './mock-packages/next_dynamic'),
'next/navigation': resolve(__dirname, './mock-packages/next_navigation'),
'next-runtime-env': resolve(
__dirname,
'./mock-packages/next-runtime-env',
),
'~': resolve(__dirname, '../src'),
},
},
Expand Down

0 comments on commit 9bc80c1

Please sign in to comment.