Skip to content

Commit

Permalink
chore: fix deployment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tntons committed Mar 26, 2024
1 parent f00ffdd commit 815a829
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apps/web/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
experimental: {
missingSuspenseWithCSRBailout: false,
},
};

export default nextConfig;
5 changes: 4 additions & 1 deletion apps/web/src/app/shake/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { peekTime, resetTime, tickTime } from "@/utils/timeCounter";
import { getMobileOperatingSystem } from "@/utils/getMobileOperatingSystem";
import ShakeComponent from './components/Shake';
import { useSearchParams } from "next/navigation";
import { Suspense } from 'react';

let shaking: { x: number; y: number; z: number } | undefined;

Expand Down Expand Up @@ -112,7 +113,9 @@ export default function Shake() {

return (
<div>
<ShakeComponent university={university} count={count} onClick={handleRequestMotion}/>
<Suspense fallback={<div>Loading...</div>}>
<ShakeComponent university={university} count={count} onClick={handleRequestMotion}/>
</Suspense>
</div>
);
}

0 comments on commit 815a829

Please sign in to comment.