build: convert require to import
All checks were successful
Build and Push Container / Build App (push) Successful in 1m18s
Build and Push Container / Build App (pull_request) Successful in 1m18s
Build and Push Container / Publish App (pull_request) Has been skipped
Build and Push Container / Publish App (push) Has been skipped
All checks were successful
Build and Push Container / Build App (push) Successful in 1m18s
Build and Push Container / Build App (pull_request) Successful in 1m18s
Build and Push Container / Publish App (pull_request) Has been skipped
Build and Push Container / Publish App (push) Has been skipped
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
|
import pkg from "../../../../package.json";
|
||||||
|
|
||||||
export async function GET() {
|
export async function GET() {
|
||||||
const json = require("../../../../package.json");
|
|
||||||
const response = {
|
const response = {
|
||||||
"status": "Healthy",
|
"status": "Healthy",
|
||||||
"version": json.version
|
"version": pkg.version
|
||||||
}
|
};
|
||||||
return new Response(JSON.stringify(response), {
|
return new Response(JSON.stringify(response), {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user