Skip to content

Commit d782e66

Browse files
committed
fix: use package name and version for generator
1 parent 7518391 commit d782e66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/helpers/setUpEdgeFunction.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const { join, relative, sep, posix } = require('node:path')
55

66
const { readJson } = require('fs-extra')
77

8+
const packageJson = require('../../package.json')
9+
810
/**
911
* Recursively lists all files in a directory.
1012
*/
@@ -75,7 +77,7 @@ const setUpEdgeFunction = async ({ angularJson, projectName, netlifyConfig, cons
7577
export const config = {
7678
path: "/*",
7779
excludedPath: ${JSON.stringify(excludedPaths)},
78-
generator: "angular-on-netlify",
80+
generator: "${packageJson.name}@${packageJson.version}",
7981
name: "Angular SSR",
8082
};
8183
`

0 commit comments

Comments
 (0)