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