Skip to content

Commit

Permalink
Merge branch 'main' into feat/bump-template-bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago authored Jan 12, 2024
2 parents 9785d48 + f65105d commit 5844b8d
Show file tree
Hide file tree
Showing 7 changed files with 1,978 additions and 1,714 deletions.
4 changes: 4 additions & 0 deletions docs/docs/deploy/google-cloud-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ gcloud run deploy [SERVICE_NAME] \
- `[PROJECT_ID]`: The ID of the Google Cloud project
- `[REGION]`: The GCP region you wish to deploy to (ex: us-central1)

:::caution
There is an ongoing [issue](https://github.com/google/gvisor/issues/7331) that is preventing Dart Unix Sockets from working correctly in the gen1 version of the [Cloud Run execution environment](https://cloud.google.com/run/docs/about-execution-environments). In that case, it is recommended to deploy to gen2 by adding `--execution-environment=gen2`.
:::

Running this command will do three things:

- Upload the code in the `/build` directory
Expand Down
8 changes: 6 additions & 2 deletions docs/docs/tutorials/todos.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,9 @@ Future<Response> _get(RequestContext context) async {
Future<Response> _post(RequestContext context) async {
final dataSource = context.read<TodosDataSource>();
final todo = Todo.fromJson(await context.request.json());
final todo = Todo.fromJson(
await context.request.json() as Map<String, dynamic>,
);
return Response.json(
statusCode: HttpStatus.created,
Expand Down Expand Up @@ -599,7 +601,9 @@ Future<Response> _get(RequestContext context, Todo todo) async {
Future<Response> _put(RequestContext context, String id, Todo todo) async {
final dataSource = context.read<TodosDataSource>();
final updatedTodo = Todo.fromJson(await context.request.json());
final updatedTodo = Todo.fromJson(
await context.request.json() as Map<String, dynamic>,
);
final newTodo = await dataSource.update(
id,
todo.copyWith(
Expand Down
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^3.0.0",
"@docusaurus/preset-classic": "^3.0.0",
"@docusaurus/core": "^3.1.0",
"@docusaurus/preset-classic": "^3.1.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.1.0",
"prism-react-renderer": "^2.3.0",
Expand All @@ -27,8 +27,8 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.23.3",
"@docusaurus/eslint-plugin": "^3.0.1",
"@docusaurus/module-type-aliases": "^3.0.1",
"@docusaurus/eslint-plugin": "^3.1.0",
"@docusaurus/module-type-aliases": "^3.1.0",
"eslint": "^8.56.0",
"prettier": "^3.1.1"
},
Expand Down
3,058 changes: 1,566 additions & 1,492 deletions docs/yarn.lock

Large diffs are not rendered by default.

Loading

0 comments on commit 5844b8d

Please sign in to comment.