Skip to content

sku@10.1.0

Choose a tag to compare

@seek-oss-ci seek-oss-ci released this 07 Apr 23:14
· 921 commits to master since this release
1540873

Minor Changes

  • Add sku serve command (#487)

    The sku serve command adds the abilty to view the output of sku build without 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 build only features)
    • Performance testing

    Site/host routing works the same as sku start. However, you can set your preferred site via the --site argument. e.g. sku serve --site seekAnz. By default the first site is used.

    You can specify which environment you want to serve via the --environment argument. e.g. sku serve --environment production. By default the first environment is used.

    Note: sku serve does 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 new sku serve command. However, sku start and sku build will continue to work.

    MIGRATION GUIDE

    Update your routes in sku.config.js to 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.