@gasket/plugin-nextjs
Version:
Adds Next support to your application
11 lines (10 loc) • 347 B
text/typescript
import Document from 'next/document';
import { withGasketData } from '@gasket/nextjs/document';
{{#if (eq nextServerType 'customServer')}}
import gasket from '@/gasket'; // tsconfig path alias
{{else if nextDevProxy}}
import gasket from '@/gasket';
{{else}}
import gasket from '../gasket';
{{/if}}
export default withGasketData(gasket)(Document);