-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[automated commit] Bump docs to versions 2.4.0, 1.53.3
- Loading branch information
1 parent
ffffe7c
commit 90d97a5
Showing
183 changed files
with
550 additions
and
37 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
33 changes: 33 additions & 0 deletions
33
versioned_docs/version-2.4.0/packages/astro/configuration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Issues from '../../getting-started/issues.md'; | ||
|
||
# Configuration | ||
|
||
Platformatic Astro is configured with a configuration file. It supports the use | ||
of environment variables as setting values with [configuration placeholders](#configuration-placeholders). | ||
|
||
## `application` | ||
|
||
Supported object properties: | ||
|
||
- **`basePath`**: Service proxy base path when exposing this application in a [composer](../../composer/configuration.md) when setting the `proxy` property. If not specified, the service will be exposed on the service or a value specified in the service code via `platformatic.setBasePath()`. | ||
- **`outputDirectory`**: The subdirectory where production build is stored at when using `wattpm build` or `plt build`. The default is `dist`. | ||
- **`include`**: The paths to include when deploying the service. The default is `['dist']`. | ||
- **`commands`**: An object specifying the commands to manage the application instead of using the Astro defaults. Supported commands are: | ||
- **`install`**: The command to execute to install the service dependencies. The default is `npm ci --omit-dev`. | ||
- **`build`**: The command to execute to build the application. | ||
- **`development`**: The command to execute to start the application in development mode. | ||
- **`production`**: The command to execute to start the application in production mode. | ||
|
||
## `logger` | ||
|
||
Configures the logger, see the [logger configuration](https://www.fastify.io/docs/latest/Reference/Server/#logger) for more information. | ||
|
||
## `server` | ||
|
||
Configures the HTTP server, see the [runtime](../../runtime/configuration.md#server) documentation. | ||
|
||
## `watch` | ||
|
||
Manages watching of the service, see the [service](../../service/configuration.md#watch) documentation. | ||
|
||
<Issues /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: Overview | ||
label: Astro | ||
--- | ||
|
||
import Issues from '../../getting-started/issues.md'; | ||
|
||
# Platformatic Astro | ||
|
||
The Platformatic Astro allows to run an [Astro](https://astro.build/) application as a Platformatic Runtime service with no modifications. | ||
|
||
## Getting Started | ||
|
||
Create or copy an Astro application inside the `web` or `services` folder. If you are not using [`autoload`](../../runtime/configuration.md#autoload), you also have to explictly add the new service. | ||
|
||
You are all set, you can now start your runtime as usual via `wattpm dev` or `plt start`. | ||
|
||
## Example configuration file | ||
|
||
```json | ||
{ | ||
"$schema": "https://schemas.platformatic.dev/@platformatic/astro/2.0.0.json", | ||
"application": { | ||
"basePath": "/frontend" | ||
} | ||
} | ||
``` | ||
|
||
## Architecture | ||
|
||
When running in development mode, the Astro Vite development server is run a in worker thread in the same process of the Platformatic runtime. The server port is chosen randomly and it will override any user setting. | ||
|
||
When running in production mode, a custom Fastify server will serve the static or dynamic (for SSR) application. The service is run a in worker thread in the same process of the Platformatic runtime and it will not start a TCP server unless it's the runtime entrypoint. | ||
|
||
In both modes if the service uses the `commands` property then it's responsible to start a HTTP server. The Platformatic runtime will modify the server port replacing it with a random port and then it will integrate the external service in the runtime. | ||
|
||
## Configuration | ||
|
||
See the [configuration](./configuration.md) page. | ||
|
||
## API | ||
|
||
- **`platformatic.setBasePath(path)`**: This function can be use to override the base path for the service. If not properly configure in the composer, this can make your application unaccessible. | ||
- **`platformatic.id`**: The id of the service. | ||
- **`platformatic.root`**: The root directory of the service. | ||
- **`platformatic.basePath`**: The base path of the service in the composer. | ||
- **`platformatic.logLevel`**: The log level configured for the service. | ||
|
||
<Issues /> |
File renamed without changes.
Oops, something went wrong.