Commit d5c43b7 1 parent 18b71b5 commit d5c43b7 Copy full SHA for d5c43b7
File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Gallery from "@/components/Gallery";
2
2
import StorageWrapper from "@/components/StorageWrapper" ;
3
3
import getConfig from "next/config" ;
4
4
const { serverRuntimeConfig } = getConfig ( ) ;
5
- const API_URL = serverRuntimeConfig . SSR_API_URL ;
5
+ const API_URL = process . env . SSR_API_URL ;
6
6
import { Photos } from "pexels" ;
7
7
8
8
export default async function Home ( ) {
Original file line number Diff line number Diff line change 1
1
import Gallery from "@/components/Gallery" ;
2
2
import StorageWrapper from "@/components/StorageWrapper" ;
3
- import getConfig from "next/config" ;
4
- const { serverRuntimeConfig } = getConfig ( ) ;
5
- const API_URL = serverRuntimeConfig . SSR_API_URL ;
3
+ // import getConfig from "next/config";
4
+ // const { serverRuntimeConfig } = getConfig();
5
+ // const API_URL = serverRuntimeConfig.SSR_API_URL;
6
+ const API_URL = process . env . SSR_API_URL ;
6
7
import { Photos } from "pexels" ;
7
8
8
9
export default async function SearchResults ( {
You can’t perform that action at this time.
0 commit comments