diff --git a/refine-nextjs/plugins/auth-provider-google/pages/_app.tsx b/refine-nextjs/plugins/auth-provider-google/pages/_app.tsx index 7a4ea5e7..04607a62 100644 --- a/refine-nextjs/plugins/auth-provider-google/pages/_app.tsx +++ b/refine-nextjs/plugins/auth-provider-google/pages/_app.tsx @@ -110,7 +110,7 @@ export type NextPageWithLayout

= NextPage & { - <%_ if (answers["inferencer"] === 'inferencer' || answers["inferencer-headless"] === 'inferencer-headless') { _%> + <%_ if (_app.hasRoutes === true) { _%> resources={[ <%_ if (answers["data-provider"] === 'data-provider-strapi-v4') { _%> { diff --git a/refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx b/refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx index 4182788d..f0d7d940 100644 --- a/refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx +++ b/refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx @@ -110,7 +110,7 @@ export type NextPageWithLayout

= NextPage & { - <%_ if (answers["inferencer"] === 'inferencer' || answers["inferencer-headless"] === 'inferencer-headless') { _%> + <%_ if (_app.hasRoutes === true) { _%> resources={[ <%_ if (answers["data-provider"] === 'data-provider-strapi-v4') { _%> {