FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

> 0.12 webpack-dev-server does not work with localhost

Open kurtb opened this issue 6 years ago • 2 comments

Config is not specified to connect to the reference server. And does not appear to be any way to specify these values.

Would be preferable to not have to input any custom config and instead just bind against the config defaults provided as part of the default reference containers.

kurtb avatar Dec 16 '19 00:12 kurtb

I can't seem to reproduce this. What behavior are you experiencing?

wes-carlson avatar Dec 16 '19 20:12 wes-carlson

  • Start up local routerlicious
  • Go to /packages/components/canvas
  • npm run start:localhost

Fails to start with error

probable-beggar:21 Error: secretOrPrivateKey must have a value
    at Object.../../../node_modules/jsonwebtoken/sign.js.module.exports [as sign] (fluid-loader.bundle.js:40666)
    at InsecureUrlResolver.auth (fluid-loader.bundle.js:97779)
    at InsecureUrlResolver.resolve (fluid-loader.bundle.js:97749)
    at Object.start (fluid-loader.bundle.js:97936)

Then need to manually update package.json with tenant/key env. We should provide access to the default fluid tenant in these cases since it's a much nicer first run experience to not have to tweak any config.

If there is worry about this value - most Docker services have some kind of account pre-configured so users should know to change it if they deploy. We can add instructions to a README and possibly print a warning on service startup if we detect the password wasn't changed.

But by having things work with just a npm start we make it a lot easier for developers to get started - so I'd like to preserve that capability.

kurtb avatar Dec 18 '19 01:12 kurtb