Skip to content

Commit 49cf03e

Browse files
fix: url in "custom_init_method" doc (#595)
1 parent 6d472ab commit 49cf03e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/advanced/custom_init_method.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ title: 🛫 Custom Init Method
55

66
# Custom Init Method 🛫
77

8-
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.
8+
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.
99

1010
## Creating a Custom Init Method ✨
1111

1212
To create a custom init method, simply create a `main.dart` file at the root of your Dart Frog project.
1313

1414
:::warning
15-
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).
15+
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).
1616
:::
1717

1818
Add the following top-level `init` method to the `main.dart` file:

0 commit comments

Comments
 (0)