Directory Layout
A typical interact project is composed of the following paths:
| Name | Default Value | Description |
|---|---|---|
| @ alias | src | A directory that is mapped to the @ alias |
| config | config | a directory that contains extra configuration such as the markdown config |
| runtime | .interact | A directory that contains temporary runtime information such as cache, schema |
| build | dist | A directory where the build result is stored (static website and handler) |
| config file | interact.config.json | the configuration file |
| contexts | src/components/contexts | a directory that contains your context components |
| heads | src/components/heads | a directory that contains your head components |
| images | src/images | a directory that contains raster image or Svg |
| markdown components | src/components/markdown | a directory that contains your custom markdown component |
| layouts | src/components/layouts | a directory that contains your custom layouts |
| middlewares | src/middlewares | a directory that contains the middlewares for auto-registration |
| public | public | A directory that contains non-processed resources such as pdf that your pages may reference. |
| pages | src/pages | A directory that contains pages |
| root | config file directory | The base directory of your project |
If the path values are relative (ie without starting slash), they are all relative to the root directory which is the directory of your project.
Configuration
The location of the config file can only be set via flag or environment variable
All other paths may be configured in the paths node of the configuration file
How to check the actual values?
With the cli