Skip to content

Commit f671f46

Browse files
[update] NextConfig
1 parent 9200bfb commit f671f46

File tree

4 files changed

+13
-26
lines changed

4 files changed

+13
-26
lines changed

Dockerfile.production

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ COPY --from=builder /app/package.json ./package.json
4343

4444
# Automatically leverage output traces to reduce image size
4545
# https://nextjs.org/docs/advanced-features/output-file-tracing
46-
# COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
46+
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
4747
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
4848

4949

@@ -54,4 +54,4 @@ EXPOSE 3000
5454

5555
ENV PORT 3000
5656

57-
CMD ["yarn", "start"]
57+
CMD ["node", "server.js"]

next.config.js

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
/**@type{import('next).NextConfig} */
2-
const withMDX = require("@next/mdx")({
3-
extension: /\.mdx?$/,
4-
options: {
5-
remarkPlugins: [],
6-
rehypePlugins: [],
7-
},
8-
});
9-
const nextConfig = {
2+
module.exports = {
103
reactStrictMode: true,
11-
experimental: {
12-
outputStandalone: true,
13-
},
14-
// used preReact to reduce the bundle size and faster response rate.
4+
output: "standalone",
5+
6+
// used preReact to reduce the bundle size and faster response rate.
157
webpack: (config, { dev, isServer }) => {
168
if (!dev && !isServer) {
179
Object.assign(config.resolve.alias, {
@@ -22,13 +14,4 @@ const nextConfig = {
2214
}
2315
return config;
2416
},
25-
};
26-
const withBundleAnalyzer = require("@next/bundle-analyzer")({
27-
enabled: process.env.ANALYZE === "true",
28-
});
29-
30-
module.exports = nextConfig;
31-
module.exports = withBundleAnalyzer({});
32-
module.exports = withMDX({
33-
pageExtensions: ["ts", "tsx", "mdx"],
34-
});
17+
};

pages/roadmap.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { GetServerSidePropsContext, InferGetServerSidePropsType } from 'next'
22

3+
import Layout from '../components/layout'
34
import React from 'react'
45
import axios from 'axios'
56

@@ -44,6 +45,8 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {
4445
function Roadmap(props: InferGetServerSidePropsType<typeof getServerSideProps>
4546
) {
4647
return (
48+
<Layout>
49+
4750
<div className='flex flex-col items-center justify-center min-h-screen'>
4851
<h1 className='text-5xl font-semibold text-slate-50'>
4952
WIP
@@ -88,7 +91,7 @@ function Roadmap(props: InferGetServerSidePropsType<typeof getServerSideProps>
8891
}
8992
)}
9093
</div>
91-
<footer className="bg-gray-900">
94+
<footer className="">
9295
<div className="max-w-screen-xl px-4 py-8 mx-auto sm:px-6 lg:px-8">
9396
<div className="sm:flex sm:items-center sm:justify-between">
9497
<p className="mt-4 text-sm text-center text-gray-400 lg:text-right lg:mt-0">
@@ -107,6 +110,7 @@ function Roadmap(props: InferGetServerSidePropsType<typeof getServerSideProps>
107110

108111
)}
109112
</div>
113+
</Layout>
110114
)
111115
}
112116

public/rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Prajwals Blog</title>
55
<link>http://localhost:3000</link>
66
<description>Hi I'm Prajwal, and this is my blog. Here, I share through my writing my experience as a Computer science student and everything I'm learning about on React, Typescript, Go, Serverless, System Design and Testing.</description>
7-
<lastBuildDate>Fri, 01 Jul 2022 09:37:30 GMT</lastBuildDate>
7+
<lastBuildDate>Sat, 02 Jul 2022 08:00:04 GMT</lastBuildDate>
88
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
99
<generator>Feed for Node.js</generator>
1010
<image>

0 commit comments

Comments
 (0)