@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
@app
myapp

@shared
src path/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.