Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
chore: move events json and ignore it for git
Browse files Browse the repository at this point in the history
  • Loading branch information
TuukkaIkius committed Dec 11, 2023
1 parent e79cdc9 commit 65d0a4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 82 deletions.
3 changes: 2 additions & 1 deletion components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
EventProps,
getComingEvent,
} from "components/EventBanner";
import eventData from "../../public/events.json";
// @ts-ignore
import eventData from "../../public/data/events.json";

const Header = () => {
const selectedEvent = eventData
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const publicRoot = resolve("public");
Generate event file
=========================================================*/
generateEvent({
file: resolve(publicRoot, "events.json"),
file: resolve(publicRoot + "/data/", "events.json"),
});

const withBundleAnalyzer = bundleAnalyzer({
Expand Down
3 changes: 3 additions & 0 deletions public/data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ignore everything in current directory except this file
*
!.gitignore
80 changes: 0 additions & 80 deletions public/events.json

This file was deleted.

0 comments on commit 65d0a4b

Please sign in to comment.