-
Notifications
You must be signed in to change notification settings - Fork 200
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
Cannot get sitePath to work #630
Comments
Looks like loading the script using the new Miniflare({
host: options.address,
port: parseInt(options.port, 10),
workers: [
{
name: 'myapp',
modules: [{
type: 'ESModule',
contents: script.toString('utf8'),
path: 'index.mjs',
}],
compatibilityDate: '2023-05-18',
sitePath: options.sitePath,
},
],
}) |
Hey! 👋 This was raised by an internal user a couple weeks ago and it looks like a PR (#622) was put up to fix it, but closed. We should get that merged. 👍 |
This was referenced Jul 17, 2023
Fixed by #631 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to start Miniflare serving a site too, with this code:
However, this fails with:
If I modify
getServices
to add aconsole.log
, I can see thatadditionalModules
is populated correctly:However, it appears that the next line, invoking
getWorkerScript
, doesn't get this manifest and panics.The text was updated successfully, but these errors were encountered: