---
title: Development - Variables
---

Squeezer supports both global variables and stage variables.

After compiling a project variables can be accessed from `FUNCTION/src/vars.json`

## Global variables

`PROJECT_DIR/squeezer.yml` :

```yaml
vars:
  foo: "bar"
```

On this case the `foo` variable will be globally available trough all functions and stages .

## Stage variables
`PROJECT_DIR/squeezer.yml` :

```yaml
vars:
  foo: "bar"
  stages:
    dev:
      foo: "bar ... dev"
```

`sqz compile --stage dev`

Here we compiled the functions as `dev` stage , therefore the `foo` variable value will be *bar ... dev*