diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml
index 4ea1a41..5ff8331 100644
--- a/.github/workflows/nextjs.yml
+++ b/.github/workflows/nextjs.yml
@@ -28,6 +28,14 @@ jobs:
# Build job
build:
runs-on: ubuntu-latest
+ env:
+ BASE_URL: ${{ secrets.BASE_URL }}
+ KINDE_CLIENT_ID: ${{ secrets.KINDE_CLIENT_ID }}
+ KINDE_CLIENT_SECRET: ${{ secrets.KINDE_CLIENT_SECRET }}
+ KINDE_ISSUER_URL: ${{ secrets.KINDE_ISSUER_URL }}
+ KINDE_SITE_URL: ${{ secrets.KINDE_SITE_URL }}
+ KINDE_POST_LOGOUT_REDIRECT_URL: ${{ secrets.KINDE_POST_LOGOUT_REDIRECT_URL }}
+ KINDE_POST_LOGIN_REDIRECT_URL: ${{ secrets.KINDE_POST_LOGIN_REDIRECT_URL }}
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -75,14 +83,6 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- env:
- BASE_URL: ${{ secrets.BASE_URL }}
- KINDE_CLIENT_ID: ${{ secrets.KINDE_CLIENT_ID }}
- KINDE_CLIENT_SECRET: ${{ secrets.KINDE_CLIENT_SECRET }}
- KINDE_ISSUER_URL: ${{ secrets.KINDE_ISSUER_URL }}
- KINDE_SITE_URL: ${{ secrets.KINDE_SITE_URL }}
- KINDE_POST_LOGOUT_REDIRECT_URL: ${{ secrets.KINDE_POST_LOGOUT_REDIRECT_URL }}
- KINDE_POST_LOGIN_REDIRECT_URL: ${{ secrets.KINDE_POST_LOGIN_REDIRECT_URL }}
- name: Static HTML export with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next export
- name: Upload artifact
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 2f99a8d..4e34f58 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -1,11 +1,17 @@
import Sidebar from "@/components/Sidebar/Sidebar";
import ProtectedRoute from "@/components/ProtectedRoute/ProtectedRoute";
+import { Box } from "@chakra-ui/react";
const Home = () => {
+ const env = process.env.BASE_URL;
+
return (
-
-
-
+
+ {env} - base url
+
+
+
+
);
};