Skip to content

Commit

Permalink
Update packages/next/server/next-dev-server.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Tim Neutkens <[email protected]>
  • Loading branch information
yosuke-furukawa and timneutkens authored Nov 23, 2019
1 parent 94643b1 commit 6124ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/server/next-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class DevServer extends Server {
html: string,
pathname: string
) => {
const validatorPath = this.nextConfig.amp && this.nextConfig.amp.validator
const validatorPath = this.nextConfig.experimental && this.nextConfig.experimental.amp && this.nextConfig.experimental.amp.validator
return AmpHtmlValidator.getInstance(validatorPath).then(validator => {
const result = validator.validateString(html)
ampValidation(
Expand Down

0 comments on commit 6124ce3

Please sign in to comment.