File tree 3 files changed +4
-2
lines changed
application/[applicationId]
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ NEXT_PUBLIC_SITE_URL = http://localhost:3000
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import AppDetails from "../../../components/AppDetails";
5
5
6
6
const ApplicationPage = async ( { params } : { params : any } ) => {
7
7
const response = await fetch (
8
- `http://localhost:3000 /api/application/${ params . applicationId } `
8
+ `${ process . env . NEXT_PUBLIC_SITE_URL } /api/application/${ params . applicationId } `
9
9
) ;
10
10
11
11
const application : IApplication = await response . json ( ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import AllApps from "../components/AllApps";
6
6
const inter = Inter ( { subsets : [ "latin" ] } ) ;
7
7
8
8
const Home = async ( ) => {
9
- const response = await fetch ( "http://localhost:3000/api" , { next : { revalidate : 5 } } ) ;
9
+
10
+ const response = await fetch ( `${ process . env . NEXT_PUBLIC_SITE_URL } /api` , { next : { revalidate : 5 } } ) ;
10
11
const applications = await response . json ( ) ;
11
12
12
13
return (
You can’t perform that action at this time.
0 commit comments