Skip to content

Commit

Permalink
max duration time put in config
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatusic committed Jan 20, 2025
1 parent 06acda5 commit bd7e88f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pages/api/generate-sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
export const maxDuration = 300;
export const dynamic = 'force-dynamic';

import fs from 'fs';
import path from 'path';
import { NextApiRequest, NextApiResponse } from 'next';
import { User } from '@sentry/types';
import config from '@/configuration';
import { initializeApollo } from '@/apollo/apolloClient';
import { OPTIONS_HOME_PROJECTS } from '@/apollo/gql/gqlOptions';
import { FETCH_ALL_PROJECTS } from '@/apollo/gql/gqlProjects';
Expand All @@ -18,7 +14,12 @@ import { FETCH_ALL_USERS_BASIC_DATA } from '@/apollo/gql/gqlUser';
import { addressToUserView } from '@/lib/routeCreators';
import { shortenAddress } from '@/lib/helpers';

const URL = config.FRONTEND_LINK;
export const config = {
maxDuration: 300,
dynamic: 'force-dynamic',
};

const URL = process.env.NEXT_PUBLIC_FRONTEND_LINK;

function generateProjectsSiteMap(projects: IProject[]) {
return `<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit bd7e88f

Please sign in to comment.