Complete the code to mark a Next.js page as dynamic.
export const dynamic = '[1]';
Using force-dynamic tells Next.js to always render the page dynamically on the server.
Complete the code to mark a Next.js page as static.
export const dynamic = '[1]';
Using force-static tells Next.js to always render the page as static HTML.
Fix the error in the code to correctly force static rendering.
export const dynamic = [1];The value must be a string with quotes, so use 'force-static'.
Fill both blanks to create a Next.js page that is dynamic and uses a server component.
export const dynamic = '[1]'; export default function [2]() { return <h1>Hello from dynamic page</h1>; }
Use force-dynamic to force dynamic rendering and name the component Page as Next.js expects.
Fill all three blanks to create a Next.js page that is static and uses a server component named StaticPage.
export const dynamic = '[1]'; export default function [2]() { return <main>[3]</main>; }
Use force-static to force static rendering, name the component StaticPage, and return the heading inside the main tag.