Skip to content

Commit

Permalink
1st try
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Jan 30, 2024
1 parent 91ae2a5 commit f9aef8f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
7 changes: 1 addition & 6 deletions pages/attendee/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import Profile from "@layout/Attendee/Profile";

import { getCourses } from "@lib/api";

export async function getServerSideProps(context) {
context.res.setHeader(
"Cache-Control",
"public, s-maxage=3600, stale-while-revalidate=3600"
);

export async function getServerSideProps() {
const courses = await getCourses().then((response) =>
response.data.concat({ id: "", name: "None" })
);
Expand Down
5 changes: 0 additions & 5 deletions pages/register/[uuid].js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ import Title from "@layout/moonstone/authentication/Title";
import Text from "@layout/moonstone/authentication/Text";

export async function getServerSideProps(context) {
context.res.setHeader(
"Cache-Control",
"public, s-maxage=3600, stale-while-revalidate=3600"
);

const courses = await getCourses().then((response) =>
response.data.concat({ id: "", name: "None" })
);
Expand Down
7 changes: 1 addition & 6 deletions pages/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import { getCourses } from "@lib/api";

import SignUp from "@layout/SignUp";

export async function getServerSideProps(context) {
context.res.setHeader(
"Cache-Control",
"public, s-maxage=3600, stale-while-revalidate=3600"
);

export async function getServerSideProps() {
const courses = await getCourses().then((response) =>
response.data.concat({ id: "", name: "None" })
);
Expand Down

0 comments on commit f9aef8f

Please sign in to comment.