From 418c00c52a087edd5801af297611c16d8b804125 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 9 Mar 2022 16:31:08 +0000 Subject: [PATCH] Some quick updates, cleaning up codebase. --- examples/nextjs-api-sales/config/budibase.json | 5 ----- examples/nextjs-api-sales/next.config.js | 2 +- examples/nextjs-api-sales/pages/api/sales.ts | 2 +- examples/nextjs-api-sales/pages/api/salespeople.ts | 2 +- .../{components/utils.ts => utilities/index.ts} | 0 5 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 examples/nextjs-api-sales/config/budibase.json rename examples/nextjs-api-sales/{components/utils.ts => utilities/index.ts} (100%) diff --git a/examples/nextjs-api-sales/config/budibase.json b/examples/nextjs-api-sales/config/budibase.json deleted file mode 100644 index 838c3ec419..0000000000 --- a/examples/nextjs-api-sales/config/budibase.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "apiKey": "", - "appName": "", - "host": "http://localhost:10000" -} \ No newline at end of file diff --git a/examples/nextjs-api-sales/next.config.js b/examples/nextjs-api-sales/next.config.js index 335db3d3fe..abe6f37b59 100644 --- a/examples/nextjs-api-sales/next.config.js +++ b/examples/nextjs-api-sales/next.config.js @@ -6,7 +6,7 @@ const nextConfig = { includePaths: [join(__dirname, "styles")] }, serverRuntimeConfig: { - apiKey: "bf4d86af933b5ac0af0fdbe4bf7d89ff-f929752a1eeaafb00f4b5e3325097d51a44fe4b39f22ed857923409cc75414b379323a25ebfb4916", + apiKey: "", appName: "sales", host: "http://localhost:10000" } diff --git a/examples/nextjs-api-sales/pages/api/sales.ts b/examples/nextjs-api-sales/pages/api/sales.ts index 95d01d6c40..f8c0f3a8d9 100644 --- a/examples/nextjs-api-sales/pages/api/sales.ts +++ b/examples/nextjs-api-sales/pages/api/sales.ts @@ -1,4 +1,4 @@ -import { getApp, findTable, makeCall } from "../../components/utils" +import { getApp, findTable, makeCall } from "../../utilities" async function getSales(req: any) { const { page } = req.query diff --git a/examples/nextjs-api-sales/pages/api/salespeople.ts b/examples/nextjs-api-sales/pages/api/salespeople.ts index 190e901486..4bb0d4a454 100644 --- a/examples/nextjs-api-sales/pages/api/salespeople.ts +++ b/examples/nextjs-api-sales/pages/api/salespeople.ts @@ -1,4 +1,4 @@ -import { getApp, findTable, makeCall } from "../../components/utils" +import { getApp, findTable, makeCall } from "../../utilities" async function getSalespeople() { const { _id: appId } = await getApp() diff --git a/examples/nextjs-api-sales/components/utils.ts b/examples/nextjs-api-sales/utilities/index.ts similarity index 100% rename from examples/nextjs-api-sales/components/utils.ts rename to examples/nextjs-api-sales/utilities/index.ts