Skip to content

Commit

Permalink
fix: env path
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Jan 10, 2022
1 parent 39e9e30 commit dc14537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-ice-ssr/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const plugin: IPlugin = async (api): Promise<void> => {
const ssrEntry = path.join(TEMP_PATH, 'plugins/ssr/server.ts');
const ssgEntry = path.join(TEMP_PATH, 'plugins/ssr/renderPage.ts');
const routesFileExists = Boolean(applyMethod('getSourceFile', 'src/routes', rootDir));
applyMethod('addRenderFile', path.join(__dirname, './env.ts'), path.join(TEMP_PATH, 'plugins/ssr/env.ts'));
applyMethod('addRenderFile', path.join(__dirname, '../src/env.ts'), path.join(TEMP_PATH, 'plugins/ssr/env.ts'));
const renderProps = {
outputDir,
routesPath: routesFileExists ? '@' : '../..',
Expand Down

0 comments on commit dc14537

Please sign in to comment.