Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaldray committed Jun 18, 2024
1 parent 7c15db4 commit b683123
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/prod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ ENV NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
ENV USERNAME=${USERNAME}
ENV PASSWORD=${PASSWORD}
ENV NEXT_TELEMETRY_DISABLED 1
ENV NODE_ENV production


CMD ["node", "server.js"]
2 changes: 2 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { getServerSideUserInfo } from "types/next";

const Home: NextPage = () => {
const { presentation__container } = styles;
console.log(process.env.NEXT_PUBLIC_VERCEL_URL, "=========");

return (
<>
Expand Down Expand Up @@ -41,6 +42,7 @@ export default Home;

export const getServerSideProps = async (context: GetServerSidePropsContext): Promise<getServerSideUserInfo> => {
const token = await getToken(context);
console.log(process.env.NEXTAUTH_SECRET, "=========");
if (token !== null) {
return {
redirect: {
Expand Down

0 comments on commit b683123

Please sign in to comment.