You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/next/en-US/plugins/functional.md
+4
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,10 @@ If you'd like to request that a new action, functional or control, be added, ple
26
26
- `after_failed_static_alias_dir_copy` -- runs arbitrary code if the export process fails to copy a static alias that was a directory (e.g. to report the failed export to a server crash management system)
27
27
- `after_failed_static_alias_file_copy` -- runs arbitrary code if the export process fails to copy a static alias that was a file (e.g. to report the failed export to a server crash management system)
28
28
- `after_successful_export` -- runs arbitrary code after the export process has completed, if it was successful (e.g. copying custom files into `.perseus/dist/`)
29
+
-`export_error_page_actions` --- actions that'll be run when exporting an error page
30
+
- `before_export_error_page` --- runs arbitrary code before this process has started (providing the error code to be exported for and the output file)
31
+
- `after_successful_export_error_page` -- runs arbitrary code after this process has completed, if it was successful
32
+
- `after_failed_write` -- runs arbitrary code after this process has completed, if it couldn't write to the target output file
29
33
-`server_actions` -- actions that'll be run as part of the Perseus server when the user runs `perseus serve` (or when a [serverful production deployment](:deploying/serverful) runs)
30
34
- `before_serve` -- runs arbitrary code before the server starts (e.g. to spawn an API server)
31
35
-`client_actions` -- actions that'll run in the browser when the user's app is accessed
/// Functional actions that pertain to the process of exporting an error page.
146
+
#[derive(Default)]
147
+
pubstructFunctionalPluginExportErrorPageActions{
148
+
/// Runs before the process of exporting an error page, providing the HTTP status code to be exported and the output filename (relative to the root of the project, not to `.perseus/`).
0 commit comments