Skip to content

Commit

Permalink
fix: sitemap genaration
Browse files Browse the repository at this point in the history
site map genaration fixed
  • Loading branch information
jasurobo committed Dec 31, 2021
1 parent c5420fc commit 9c31aef
Show file tree
Hide file tree
Showing 17 changed files with 12,576 additions and 2 deletions.
6 changes: 6 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const changeStatusUrl = "api/user/post";
const subscribeUrl = "api/subscribe";
const loginUrl = `${apiVerUrl}/signin`;
const userUrl = `${apiVerUrl}/user`;
const getUsersUrl = `${apiVerUrl}/users-username`;
const verificationMail = `${apiVerUrl}/send-verification-mail`;
const emailTokenUrl = `${apiVerUrl}/verify-user`;
const usersUrl = `${apiVerUrl}/users`;
Expand All @@ -31,6 +32,8 @@ const postSkillUrl = `${apiVerUrl}/user-tag`;
const postSkillsUrl = `${apiVerUrl}/user-tags`;
const createTagUrl = `${apiVerUrl}/tag`;
const postCount = `${apiVerUrl}/posts-count`;
const allPostUrl = `${apiVerUrl}/posts-url`;
const getAllEventsUrl = `${apiVerUrl}/events-url`;
const skillUrl = "api/skills";
const searchUrl = "api/search";
const forgotPasswordUrl = `${apiVerUrl}/recovery`;
Expand All @@ -45,6 +48,9 @@ const getVoteTypeUrl = `${apiVerUrl}/post-vote-by-user`;

const configVars = {
baseUrl,
allPostUrl,
getUsersUrl,
getAllEventsUrl,
eventSlugUrl,
getVoteTypeUrl,
emailTokenUrl,
Expand Down
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ module.exports = {
images: {
domains: ["nullcast-assets.s3.amazonaws.com"]
},
webpack5: true,
webpack(config) {
config.resolve.fallback = {
...config.resolve.fallback, // if you miss it, all the other options in fallback, specified
// by next.js will be dropped. Doesn't make much sense, but how it is
fs: false, // the solution
};
return config;
},
env: {
BASE_URL: process.env.BASE_URL,
CLIENT_URL: process.env.CLIENT_URL,
Expand Down
Loading

0 comments on commit 9c31aef

Please sign in to comment.