Skip to content

Commit

Permalink
fix button links by removing redirects with next config
Browse files Browse the repository at this point in the history
  • Loading branch information
waalbert committed Apr 2, 2024
1 parent 670db93 commit 9abe287
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
20 changes: 2 additions & 18 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: "export",
output: "export",
reactStrictMode: true,
// rewrites: async () => ([]),
redirects: async () => [
{
source: "/apply",
destination: "https://tally.so/r/wvyaW0",
permanent: true,
},
{
source: "/mentor",
destination: "https://x03p1nm9c8s.typeform.com/to/tbReYJHH",
permanent: true,
},
{
source: "/volunteer",
destination: "https://tally.so/r/w48aRA",
permanent: true,
},
],
// redirects: async () => [],
};

module.exports = nextConfig;
9 changes: 6 additions & 3 deletions src/app/(main)/(home)/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ const Home = () => {
</h4>
<p id="tagline">UC Irvine&apos;s largest women-centric hackathon</p>
<p id="apps">Apps are now open!</p>
<VenusButton text="Hacker" url="/apply" />
<VenusButton text="Mentor" url="/mentor" />
<VenusButton text="Volunteer" url="/volunteer" />
<VenusButton text="Hacker" url="https://tally.so/r/wvyaW0" />
<VenusButton
text="Mentor"
url="https://x03p1nm9c8s.typeform.com/to/tbReYJHH"
/>
<VenusButton text="Volunteer" url="https://tally.so/r/w48aRA" />
</div>
</section>
</div>
Expand Down

0 comments on commit 9abe287

Please sign in to comment.