Jon Taylor commited on
Commit
b22027f
·
1 Parent(s): f7b9ff6

added window check

Browse files
frontend/app/utils.js CHANGED
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
  export const apiUrl =
4
  typeof window !== "undefined"
5
  ? process.env.NEXT_PUBLIC_API_URL
 
 
 
1
  export const apiUrl =
2
  typeof window !== "undefined"
3
  ? process.env.NEXT_PUBLIC_API_URL
frontend/components/Button.js DELETED
@@ -1,3 +0,0 @@
1
- export default function Button({ children }) {
2
- return <button>{children}</button>;
3
- }
 
 
 
 
frontend/next.config.js CHANGED
@@ -1,5 +1,7 @@
1
  /** @type {import('next').NextConfig} */
2
- module.exports = {
3
- reactStrictMode: false,
4
  output: "export",
 
5
  };
 
 
 
1
  /** @type {import('next').NextConfig} */
2
+ const nextConfig = {
 
3
  output: "export",
4
+ reactProductionProfiling: false,
5
  };
6
+
7
+ module.exports = nextConfig;