We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55db24 commit 0a45137Copy full SHA for 0a45137
netlify/edge-functions/version.ts
@@ -1,6 +1,7 @@
1
+import packageJson from "../../package.json" assert { type: "json" };
2
+
3
export default async (request: Request): Promise<Response> => {
4
try {
- const packageJson = JSON.parse(await Deno.readTextFile("./package.json"));
5
const { name, description, author, homepage, version } = packageJson;
6
7
const response = {
0 commit comments