Skip to main content

site

Overview of the site module in the sst/node package.

import { ... } from "sst/node/site"

The site module has the following exports.


Properties​

The properties let you access the resources that are bound to the function.


StaticSite​

This module helps with accessing StaticSite constructs.

import { StaticSite } from "sst/node/site";

url​

Type : string

The URL of the site. If custom domain is enabled, this is the custom domain URL of the site.

console.log(StaticSite.myWeb.url);

NextjsSite​

This module helps with accessing NextjsSite constructs.

import { NextjsSite } from "sst/node/site";

url​

Type : string

The URL of the site. If custom domain is enabled, this is the custom domain URL of the site.

console.log(NextjsSite.myWeb.url);

RemixSite​

This module helps with accessing RemixSite constructs.

import { RemixSite } from "sst/node/site";

url​

Type : string

The URL of the site. If custom domain is enabled, this is the custom domain URL of the site.

console.log(RemixSite.myWeb.url);