switch to cost efficient vercel function

This commit is contained in:
MuslemRahimi 2024-09-17 23:38:21 +02:00
parent 4d81f78334
commit d8fd0b4a61
4 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,9 @@
import type { RequestHandler } from "./$types";
export const config = {
runtime: "nodejs20.x",
};
export const GET = (async ({ locals }) => {
const { user, pb } = locals;
let output;

View File

@ -1,3 +1,7 @@
export const config = {
runtime: "nodejs20.x",
};
let companyName;
const fetchData = async (apiURL, apiKey, endpoint, ticker) => {

View File

@ -1,3 +1,7 @@
export const config = {
runtime: "nodejs20.x",
};
const cleanString = (input) => {
const substringsToRemove = [
"Depositary",

View File

@ -1,3 +1,7 @@
export const config = {
runtime: "nodejs20.x",
};
const cleanString = (input) => {
const substringsToRemove = [
"Depositary",