Skip to main content

service

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

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

The service module has the following exports.


Properties

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


Service

This module helps with accessing Service constructs.

import { Service } from "sst/node/service";

url

Type : string

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

console.log(Service.myService.url);