Skip to content

Commit d5c43b7

Browse files
committed
feat: split microservice deployment
1 parent 18b71b5 commit d5c43b7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pexels-grid/src/app/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Gallery from "@/components/Gallery";
22
import StorageWrapper from "@/components/StorageWrapper";
33
import getConfig from "next/config";
44
const { serverRuntimeConfig } = getConfig();
5-
const API_URL = serverRuntimeConfig.SSR_API_URL;
5+
const API_URL = process.env.SSR_API_URL;
66
import { Photos } from "pexels";
77

88
export default async function Home() {

pexels-grid/src/app/search/[query]/page.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import Gallery from "@/components/Gallery";
22
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;
67
import { Photos } from "pexels";
78

89
export default async function SearchResults({

0 commit comments

Comments
 (0)