sku@10.1.0
Minor Changes
-
Add sku serve command (#487)
The
sku servecommand adds the abilty to view the output ofsku buildwithout deploying to an environment. This is helpful for:- Debugging production build only issues
- Running integration tests
- Viewing the app on legacy browsers (that require
sku buildonly features) - Performance testing
Site/host routing works the same as
sku start. However, you can set your preferred site via the--siteargument. e.g.sku serve --site seekAnz. By default the first site is used.You can specify which environment you want to serve via the
--environmentargument. e.g.sku serve --environment production. By default the first environment is used.Note:
sku servedoes not work for apps that use a different domain for their publicPath.
Patch Changes
-
Introduce new dynamic route syntax (#487)
Dynamic routes should now be indicated by a
# sku character rather than:`.Usage of
:for dynamic routes is now deprecated and will not work with the newsku servecommand. However,sku startandsku buildwill continue to work.MIGRATION GUIDE
Update your routes in
sku.config.jsto use the new `# sku syntax.{ - routes: ['/job/:id'], + routes: ['/job/$id'], }Warning: This will cause the affected routes to output a different folder structure. Make sure to update your web server route rules for the affected routes before releasing this change.
Please reach out to #sku-support if you have any questions.