-
Notifications
You must be signed in to change notification settings - Fork 89
fix: vendor deno dependencies #2302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
1addb01
4988b83
88ac9a9
30416b5
187aae1
b5ae8db
4ffa6b1
7201a27
1848684
1ec8485
e8428c8
226f5c7
9a2b90d
35886e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/templates/vendor |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -356,7 +356,7 @@ export const getEdgeFunctionPatternForPage = ({ | |
export const writeEdgeFunctions = async ({ | ||
netlifyConfig, | ||
routesManifest, | ||
constants: { PACKAGE_PATH = '' }, | ||
constants: { PACKAGE_PATH = '', INTERNAL_EDGE_FUNCTIONS_SRC }, | ||
}: { | ||
netlifyConfig: NetlifyConfig | ||
routesManifest: RoutesManifest | ||
|
@@ -378,6 +378,11 @@ export const writeEdgeFunctions = async ({ | |
const nextConfig = nextConfigFile.config | ||
const usesAppDir = nextConfig.experimental?.appDir | ||
|
||
await copy(getEdgeTemplatePath('../vendor'), join(edgeFunctionRoot, 'vendor')) | ||
netlifyConfig.functions['*'] = { | ||
deno_import_map: join(INTERNAL_EDGE_FUNCTIONS_SRC, 'vendor', 'import_map.json'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This gives a TypeScript error as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup, good catch! doing that in netlify/build#5305 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me know when it's released and when this PR is updated. We'll get this merged. 👍🏻 |
||
} | ||
|
||
await copy(getEdgeTemplatePath('../edge-shared'), join(edgeFunctionRoot, 'edge-shared')) | ||
await writeJSON(join(edgeFunctionRoot, 'edge-shared', 'nextConfig.json'), nextConfig) | ||
await copy(join(publish, 'prerender-manifest.json'), join(edgeFunctionRoot, 'edge-shared', 'prerender-manifest.json')) | ||
|
Uh oh!
There was an error while loading. Please reload this page.