switch to cost efficient vercel function
This commit is contained in:
parent
4d81f78334
commit
d8fd0b4a61
@ -1,5 +1,9 @@
|
|||||||
import type { RequestHandler } from "./$types";
|
import type { RequestHandler } from "./$types";
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
runtime: "nodejs20.x",
|
||||||
|
};
|
||||||
|
|
||||||
export const GET = (async ({ locals }) => {
|
export const GET = (async ({ locals }) => {
|
||||||
const { user, pb } = locals;
|
const { user, pb } = locals;
|
||||||
let output;
|
let output;
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
export const config = {
|
||||||
|
runtime: "nodejs20.x",
|
||||||
|
};
|
||||||
|
|
||||||
let companyName;
|
let companyName;
|
||||||
|
|
||||||
const fetchData = async (apiURL, apiKey, endpoint, ticker) => {
|
const fetchData = async (apiURL, apiKey, endpoint, ticker) => {
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
export const config = {
|
||||||
|
runtime: "nodejs20.x",
|
||||||
|
};
|
||||||
|
|
||||||
const cleanString = (input) => {
|
const cleanString = (input) => {
|
||||||
const substringsToRemove = [
|
const substringsToRemove = [
|
||||||
"Depositary",
|
"Depositary",
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
export const config = {
|
||||||
|
runtime: "nodejs20.x",
|
||||||
|
};
|
||||||
|
|
||||||
const cleanString = (input) => {
|
const cleanString = (input) => {
|
||||||
const substringsToRemove = [
|
const substringsToRemove = [
|
||||||
"Depositary",
|
"Depositary",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user