nextjsBuild
The module is implemented as a struct NextjsBuild with a method Build that takes a source directory (source) as input, representing the root of the Next.js project. The resulting container is configured for serving the static site, with Nginx acting as the web server.Installation
dagger install github.com/slumbering/daggerverse/nextjs-build@aecd555e8c01fef95d98606aa57cd21fac6be323
Entrypoint
Return Type
NextjsBuild
Example
dagger -m github.com/slumbering/daggerverse/nextjs-build@aecd555e8c01fef95d98606aa57cd21fac6be323 call \
func (m *myModule) example() *NextjsBuild {
return dag.
NextjsBuild()
}
@function
def example() -> dag.NextjsBuild:
return (
dag.nextjs_build()
)
@func()
example(): NextjsBuild {
return dag
.nextjsBuild()
}
Types
NextjsBuild 🔗
build() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/slumbering/daggerverse/nextjs-build@aecd555e8c01fef95d98606aa57cd21fac6be323 call \
build --source DIR_PATH
func (m *myModule) example(source *Directory) *Container {
return dag.
NextjsBuild().
Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.nextjs_build()
.build(source)
)
@func()
example(source: Directory): Container {
return dag
.nextjsBuild()
.build(source)
}