MCPcopy Create free account
hub / github.com/serverless/serverless / getRcFileName

Function getRcFileName

packages/util/src/rc/index.js:52–61  ·  view source on GitHub ↗
(baseFilename)

Source from the content-addressed store, hash-verified

50 * The file name may be different depending on the stage.
51 */
52const getRcFileName = (baseFilename) => {
53 if (
54 process.env.SERVERLESS_PLATFORM_STAGE &&
55 process.env.SERVERLESS_PLATFORM_STAGE !== 'prod'
56 ) {
57 baseFilename = `${baseFilename}${process.env.SERVERLESS_PLATFORM_STAGE.toLowerCase()}`
58 baseFilename = baseFilename.trim()
59 }
60 return `.${baseFilename}rc`
61}
62
63/**
64 * Get various possible .{baseFilename}rc file paths

Callers 3

getRcLocalPathFunction · 0.85
getRcDefaultPathFunction · 0.85
getRcDefaultConfigPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected