Skip to content

Commit

Permalink
update nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
terencehuynh committed Oct 10, 2023
1 parent 0c9c5ad commit 3d37170
Show file tree
Hide file tree
Showing 7 changed files with 515 additions and 4,079 deletions.
2 changes: 1 addition & 1 deletion lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const SPONSORSHIP_EMAIL =
'mailto:[email protected]?subject=UNIHACK 2023 Sponsorship';
'mailto:[email protected]?subject=UNIHACK 2024 Sponsorship';
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
59 changes: 21 additions & 38 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
const withPlugins = require('next-compose-plugins');
const { config } = require('process');

const redirects = async () => {
return [
{
source: '/join',
destination:
'https://docs.google.com/forms/d/e/1FAIpQLScWRbp9lMacf0Xjul2y2kgLvgsTYqDo1BlrDWBkEAac0UrY0w/viewform',
permanent: false,
},
{
source: '/discord',
destination: 'https://discord.gg/MfuzHurGpd',
permanent: false,
}
];
};

const webpack = async (config, options) => {
return config;
};
const withMDX = require('@next/mdx')({
extension: /\.(md|mdx)$/,
});

module.exports = {
redirects,
webpack,
target: 'serverless',
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
redirects: async () => {
return [
{
source: '/join',
destination:
'https://docs.google.com/forms/d/e/1FAIpQLScWRbp9lMacf0Xjul2y2kgLvgsTYqDo1BlrDWBkEAac0UrY0w/viewform',
permanent: false,
},
{
source: '/discord',
destination: 'https://discord.gg/MfuzHurGpd',
permanent: false,
}
];
},
exportPathMap: function () {
return {
'/': { page: '/' },
Expand All @@ -39,16 +33,5 @@ module.exports = {
},
};

// const withImages = require('next-images');
const withMDX = require('@next/mdx')({
extension: /\.(md|mdx)$/,
});

module.exports = withPlugins([
[
withMDX,
{
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
},
]
]);
module.exports = withMDX(nextConfig)
Loading

0 comments on commit 3d37170

Please sign in to comment.