From 49cf03e8fb828b65bcb3f73499bf1e60c6e4a834 Mon Sep 17 00:00:00 2001 From: Gabriel Oliveira Rozendo Date: Wed, 5 Apr 2023 15:33:06 +0100 Subject: [PATCH] fix: url in "custom_init_method" doc (#595) --- docs/docs/advanced/custom_init_method.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/advanced/custom_init_method.md b/docs/docs/advanced/custom_init_method.md index 0e93bdfba..592e78925 100644 --- a/docs/docs/advanced/custom_init_method.md +++ b/docs/docs/advanced/custom_init_method.md @@ -5,14 +5,14 @@ title: 🛫 Custom Init Method # Custom Init Method 🛫 -Dart Frog supports creating a custom entrypoint as shown in the [Custom Entrypoint docs](docs/advanced/custom_entrypoint) but that will run every time the server hot reloads. In cases where you want to initialize something only on server start, like setting up a database connection, you can use the `init` method. +Dart Frog supports creating a custom entrypoint as shown in the [Custom Entrypoint docs](/docs/advanced/custom_entrypoint) but that will run every time the server hot reloads. In cases where you want to initialize something only on server start, like setting up a database connection, you can use the `init` method. ## Creating a Custom Init Method ✨ To create a custom init method, simply create a `main.dart` file at the root of your Dart Frog project. :::warning -Keep in mind that the `main.dart` file must expose a top-level `run` as mentioned in the [Custom Entrypoint docs](docs/advanced/custom_entrypoint). +Keep in mind that the `main.dart` file must expose a top-level `run` as mentioned in the [Custom Entrypoint docs](/docs/advanced/custom_entrypoint). ::: Add the following top-level `init` method to the `main.dart` file: