-
Notifications
You must be signed in to change notification settings - Fork 125
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
Emulate routes config #6
Comments
With #11 I've implemented a first-pass on supporting this. When the proxy starts up it'll look for a |
There's still a few outstanding things:
|
With the new unified config file coming, perhaps we should pivot and support that instead of routes.json. Also would be great if the emulator can search for the config file, starting from the app_location. Perhaps add an additional command line flag to specify the location of the file, as this info may not be available when starting using something like @mkarmark can provide info on the routing, fallback, and response overrides logic in the new config file. |
Notes from today's meeting with Anthony Chu and Mitali Karmarkar:
|
* feat: add 'swa db init' command * added support for custom folder names, adjusted template for schema file, adjusted usage of cosmosdb params to fix bug * Using execFileCommand instead of execSync to prevent shell injection attacks in case of untrusted user input * merge: get latest changes * fix: added cosmosdb_postgresql and refactored * chore: nit comments * fix: more checks to handle corner cases * fix: add validDBcheck * fix: nit comments * Changed rest path in db init to /rest and fixed bug causing error to throw when valid database type is passed --------- Co-authored-by: sgollapudi77 <85578033+sgollapudi77@users.noreply.github.com>
* feat: Initial changes to download dab binary * feat: add "data-api-location" flag support for 'swa start' * feat: proxy requests made to "/data-api" to dab-cli * fix: unzipping of DAB-package and routing issue * nit: nit comments * feat: add support for "staticwebapp.db.config.json" and nit changes * chore: nit changes and handling staticwebapp.database.config.json * chore: nit comments * fix: temp url for data-api binary download fix: authentication headers in dab routing fix: swa start --help * feat: add separate executable based on the OS and nit changes * fix: ERR_STREAM_WRITE_AFTER_END error while writing stream * nit: resolve comments * fix: rename dab binary to new binary Name * fix: Linux permission issue for dab-executable * fix: fix naming while running dab command * nit: resolve comments * Added swa db init command (#6) * feat: add 'swa db init' command * added support for custom folder names, adjusted template for schema file, adjusted usage of cosmosdb params to fix bug * Using execFileCommand instead of execSync to prevent shell injection attacks in case of untrusted user input * merge: get latest changes * fix: added cosmosdb_postgresql and refactored * chore: nit comments * fix: more checks to handle corner cases * fix: add validDBcheck * fix: nit comments * Changed rest path in db init to /rest and fixed bug causing error to throw when valid database type is passed --------- Co-authored-by: sgollapudi77 <85578033+sgollapudi77@users.noreply.github.com> * updating register command changes for dab * build error * reverting few package-lock changes * move registerdb out to keep it consistent with others * refactor: moved dab init files to subfolder to accommodate dab add, dab update commands later * nit: addressing comments from older PR * fix: add support for downloading latest tag/specific version * fix: comment pinned version code * nit: triggering new build --------- Co-authored-by: sgollapudi77 <85578033+sgollapudi77@users.noreply.github.com> Co-authored-by: Sai Vamsi Krishna Gollapudi <sgollapudi@microsoft.com> Co-authored-by: Thomas Gauvin <35609369+thomasgauvin@users.noreply.github.com>
commit 2edf444 Author: sgollapudi77 <85578033+sgollapudi77@users.noreply.github.com> Date: Wed Mar 15 11:05:09 2023 +0530 chore: bump into 1.1.1-alpha after release (#668) commit c242066 Author: sgollapudi77 <85578033+sgollapudi77@users.noreply.github.com> Date: Tue Mar 14 17:51:20 2023 +0530 chore: prep-release 1.1.0 (#667) commit a77bd50 Author: Vivek Jilla <vivekjilla7@gmail.com> Date: Tue Mar 14 13:09:17 2023 +0530 feat: dab integration (#662) * feat: Initial changes to download dab binary * feat: add "data-api-location" flag support for 'swa start' * feat: proxy requests made to "/data-api" to dab-cli * fix: unzipping of DAB-package and routing issue * nit: nit comments * feat: add support for "staticwebapp.db.config.json" and nit changes * chore: nit changes and handling staticwebapp.database.config.json * chore: nit comments * fix: temp url for data-api binary download fix: authentication headers in dab routing fix: swa start --help * feat: add separate executable based on the OS and nit changes * fix: ERR_STREAM_WRITE_AFTER_END error while writing stream * nit: resolve comments * fix: rename dab binary to new binary Name * fix: Linux permission issue for dab-executable * fix: fix naming while running dab command * nit: resolve comments * Added swa db init command (#6) * feat: add 'swa db init' command * added support for custom folder names, adjusted template for schema file, adjusted usage of cosmosdb params to fix bug * Using execFileCommand instead of execSync to prevent shell injection attacks in case of untrusted user input * merge: get latest changes * fix: added cosmosdb_postgresql and refactored * chore: nit comments * fix: more checks to handle corner cases * fix: add validDBcheck * fix: nit comments * Changed rest path in db init to /rest and fixed bug causing error to throw when valid database type is passed --------- Co-authored-by: sgollapudi77 <85578033+sgollapudi77@users.noreply.github.com> * updating register command changes for dab * build error * reverting few package-lock changes * move registerdb out to keep it consistent with others * refactor: moved dab init files to subfolder to accommodate dab add, dab update commands later * nit: addressing comments from older PR * fix: add support for downloading latest tag/specific version * fix: comment pinned version code * nit: triggering new build --------- Co-authored-by: sgollapudi77 <85578033+sgollapudi77@users.noreply.github.com> Co-authored-by: Sai Vamsi Krishna Gollapudi <sgollapudi@microsoft.com> Co-authored-by: Thomas Gauvin <35609369+thomasgauvin@users.noreply.github.com>
Checkout docs for more details.
The text was updated successfully, but these errors were encountered: