Skip to content

Commit

Permalink
refactor: 환경변수 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanghyun0505 committed May 2, 2024
1 parent 06e10d5 commit aa74f75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next-sitemap').IConfig} */

const url = process.env.NEXT_PUBLIC_SUB_DOMAIN_URL || "http://localhost:3000";
const url = process.env.NEXT_PUBLIC_DOMAIN_URL || "http://localhost:3000";

module.exports = {
siteUrl: url,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/sitemap/detail-sitemap.xml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getServerSideProps: GetServerSideProps = async (
context: GetServerSidePropsContext
) => {
const baseUrl =
process.env.NEXT_PUBLIC_SUB_DOMAIN_URL || "http://localhost:3000";
process.env.NEXT_PUBLIC_DOMAIN_URL || "http://localhost:3000";
const { data } = await PostApi.getAllPostApi();

const sitemapFields: ISitemapField[] = data.map((item) => ({
Expand Down
3 changes: 1 addition & 2 deletions src/pages/sitemap/tag-sitemap.xml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import PostApi from "@/src/services/Post/PostApi";
export const getServerSideProps: GetServerSideProps = async (
context: GetServerSidePropsContext
) => {
const baseUrl =
process.env.NEXT_PUBLIC_SUB_DOMAIN_URL || "http://localhost:3000";
const baseUrl = process.env.NEXT_PUBLIC_DOMAIN_URL || "http://localhost:3000";
const { data } = await PostApi.getAllPostApi();

const sitemapFields: ISitemapField[] = data.map((item) => ({
Expand Down

0 comments on commit aa74f75

Please sign in to comment.