Skip to content

Commit 22e80de

Browse files
committed
Fix static build
1 parent 4ac9678 commit 22e80de

File tree

12 files changed

+12632
-16
lines changed

12 files changed

+12632
-16
lines changed

data/links.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"items": [
66
{
77
"name": "Schedule",
8-
"path": "/schedule"
8+
"path": "/schedule/2022-07-11/"
99
},
1010
{
1111
"name": "List of Sessions",

data/pages-content/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ time.
3535
<li><b>2022-05-23</b>: Financial Aid for In-person Participations Closes</li>
3636
<li><b>2022-06-07</b>: <a href="/tickets#remote-tickets">Remote Tickets - Regular Sales</a> Starts </li>
3737
<li><b>2022-06-07</b>: <a href="/finaid">Financial Aid for Remote Tickets</a> Starts </li>
38-
<li><b>2022-06-14</b>: Initial <a href="/schedule">Schedule </a> Published</li>
38+
<li><b>2022-06-14</b>: Initial <a href="/schedule/2022-07-11/">Schedule </a> Published</li>
3939
<li><b>2022-06-27</b>: <a href="/tickets#remote-tickets">Remote Tickets - Late Bird</a> Starts</li>
4040
<li><b>2022-07-03</b>: Financial Aid for Remote Tickets Ends</li>
4141
<li><b>2022-07-10</b>: Gather & Set up at The CCD in Dublin! 🤗</li>

lib/schedule.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// this is in javascript because it is used by next.config.js
22
// @ts-check
3-
const API_URL = "https://programapi.europython.eu/schedule.json";
3+
const data = require("./schedule_data.json");
44

5-
const fetchSchedule = async () => {
6-
const response = await fetch(API_URL);
5+
// data was coming from https://programapi.europython.eu/schedule.json
76

8-
return await response.json();
7+
const fetchSchedule = async () => {
8+
return data;
99
};
1010

1111
module.exports = {

0 commit comments

Comments
 (0)