-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way of Generating/Using a custom index page? #43
Comments
Can you provide your linkResolver code. |
I don't think you can use variables like {
type: 'Page',
match: '/:uid/',
filter: data => data.node._meta.uid.includes('index'),
component: require.resolve('./src/templates/page.jsx'),
} |
|
@mrseanbaines |
I think I have found the issue, generally using, I was using previewPath in a different part of the plugin which was set to '/' which was causing duplicate routes |
I have 1 custom type in Prismic I want to use for all page types.
If I set the UID in Prismic to be index, localhost:9000/index works fine but localhost:9000/ (I actually get a flash of the page I want, then a white screen).
I've tried
which doesn't work. Has anyone got any suggestions on how to get this?
The text was updated successfully, but these errors were encountered: