Skip to content

Commit

Permalink
RSC: Fix experimental setup (#8894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jul 13, 2023
1 parent fb0d689 commit c44a260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/experimental/setupRscHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export const handler = async ({ force, verbose }) => {
'utf-8'
)

writeFile(rwPaths.web.entries, entriesTemplate, {
// Can't use rwPaths.web.entries because it's not created yet
writeFile(path.join(rwPaths.web.src, 'entries.ts'), entriesTemplate, {
overwriteExisting: force,
})
},
Expand Down
2 changes: 1 addition & 1 deletion packages/project-config/src/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const PATH_WEB_DIR_CONFIG_WEBPACK = 'web/config/webpack.config.js'
const PATH_WEB_DIR_CONFIG_VITE = 'web/vite.config' // .js,.ts
const PATH_WEB_DIR_ENTRY_CLIENT = 'web/src/entry.client' // .jsx,.tsx
const PATH_WEB_DIR_ENTRY_SERVER = 'web/src/entry.server' // .jsx,.tsx
const PATH_WEB_DIR_ENTRIES = 'web/src/entries' // .jsx,.tsx
const PATH_WEB_DIR_ENTRIES = 'web/src/entries' // .js,.ts

const PATH_WEB_DIR_CONFIG_POSTCSS = 'web/config/postcss.config.js'
const PATH_WEB_DIR_CONFIG_STORYBOOK_CONFIG = 'web/config/storybook.config.js'
Expand Down

0 comments on commit c44a260

Please sign in to comment.