Skip to content

Ambiguious / not clear where to put the _routes.json file #20819

@syonfox

Description

@syonfox

Existing documentation URL(s)

What changes are you suggesting?

Create a _routes.json file to control when your Function is invoked. It should be placed in the output directory of your project.

I found the solution from the dashboard but maybe it should specify the directory explicitly as it is ambiguous what the 'output directory is' is it the root or the public folder or the functions folder I didn't know and put it in the root of the project so it was being ignored.

Invocation routes determine when your Functions script is executed. This file is generated based on the files present in the /functions directory.

(from function section of pages project)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions