Skip to content

Commit

Permalink
Adjust yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Misiuk committed Aug 23, 2023
1 parent 3ad52c3 commit afdd336
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 9 additions & 3 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -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 (
<ProtectedRoute>
<Sidebar />
</ProtectedRoute>
<Box color="black">
{env} - base url
<ProtectedRoute>
<Sidebar />
</ProtectedRoute>
</Box>
);
};

Expand Down

0 comments on commit afdd336

Please sign in to comment.