Home Docs

@shared

Configure the location of shared code. For a full example, see Sharing Code.

Syntax

  • File path of the folder containing shared code

Example

The following configuration examples define a different folder than the default src/shared directory.

arc
@appmyapp@sharedsrcpath/to/code
json
{
 "app": "myapp",
 "shared": {
 "src": "path/to/code"
 }
}
yaml
---
app: myapp
shared:
 - src: path/to/code

Specific function opt-out

A function can be configured with a config.arc to not have @shared code automatically hydrated.

@shared

AltStyle によって変換されたページ (->オリジナル) /