mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
fix(nuxt): test generated pathname
This commit is contained in:
parent
e9ff34ace4
commit
af55b9882e
@ -41,7 +41,7 @@ function _getPayloadURL (url: string, opts: LoadPayloadOptions = {}) {
|
||||
if (u.search) {
|
||||
throw new Error('Payload URL cannot contain search params: ' + url)
|
||||
}
|
||||
if (u.host !== 'localhost' || hasProtocol(url, true)) {
|
||||
if (u.host !== 'localhost' || hasProtocol(u.pathname, true)) {
|
||||
throw new Error('Payload URL must not include hostname: ' + url)
|
||||
}
|
||||
const hash = opts.hash || (opts.fresh ? Date.now() : '')
|
||||
|
Loading…
Reference in New Issue
Block a user