Skip to content

Commit

Permalink
debugging build action
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadgaz committed Oct 7, 2024
1 parent dc41e42 commit dd1ab8a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- name: Lint test
run: |
npm run lint
build:
environment: Preview
runs-on: ubuntu-latest
Expand All @@ -36,6 +35,12 @@ jobs:
with:
node-version: 20

- name: Check current directory
run: pwd

- name: List all files
run: ls -la

- name: Build app
run: npm run build

Expand All @@ -44,3 +49,11 @@ jobs:
with:
name: next-build
path: .next/

- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Footer } from '@/components/organisms';
import { cookies } from 'next/headers';

const inter = Inter({ subsets: ['latin'] });
console.log(process.env.NEXT_PUBLIC_BASE_URL);

export const metadata: Metadata = {
title: {
template: '%s | Course Scheduler',
Expand Down
2 changes: 1 addition & 1 deletion components/organisms/client/review/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export const ReviewWithoutProviders: React.FC<Props> = ({
setError(true);
}
});
}, [isUpvoted, isDownvoted, cookies.csrftoken, props.id]);
}, [isUpvoted, isDownvoted, cookies.csrftoken, props.id, isAuthenticated]);
const handleDelete = () => {
fetch(`/django/core/users/reviews/${props.id}`, {
method: 'DELETE',
Expand Down

0 comments on commit dd1ab8a

Please sign in to comment.