diff --git a/src/pages/[platform]/build-a-backend/server-side-rendering/index.mdx b/src/pages/[platform]/build-a-backend/server-side-rendering/index.mdx index f4f8bb10981..9b5b1b417b3 100644 --- a/src/pages/[platform]/build-a-backend/server-side-rendering/index.mdx +++ b/src/pages/[platform]/build-a-backend/server-side-rendering/index.mdx @@ -504,7 +504,7 @@ export default async function StaticallyRenderedPage() { nextServerContext: null, operation: (contextSpec) => getUrl(contextSpec, { - key: 'splash.png' + path: 'splash.png' }) }); @@ -576,7 +576,7 @@ Similar to static rendering with the App Router, you can pass `null` as the valu export async function getStaticProps() { const splashUrl = await runWithAmplifyServerContext({ nextServerContext: null, - operation: (contextSpec) => getUrl(contextSpec, { key: 'splash.png' }) + operation: (contextSpec) => getUrl(contextSpec, { path: 'splash.png' }) }); return {