Giter Site home page Giter Site logo

Comments (5)

eoinsha avatar eoinsha commented on June 2, 2024

Hi @Nikola-Milovic πŸ‘‹
SLIC Starter assumes that you want to use a domain, even for the backend (api.example.com) so this isn't going to work out of the box. If you really want to avoid using the domainConfig, a lot of other parts would have to be changed, so it's as well to use one, and you have a nice, human-readable URL for the API endpoints.
If you want to exclude the frontend, you can remove it the frontend folder entirely, then remove frontend from cicd/modules.ts so it doesn't get deployed as part of the CI/CD.

from slic-starter.

Nikola-Milovic avatar Nikola-Milovic commented on June 2, 2024

I'll stick with a domain thenπŸ˜‚

Thank you very much!

from slic-starter.

Nikola-Milovic avatar Nikola-Milovic commented on June 2, 2024

@eoinsha Sorry for the ping, but should this be a normal occurrence? Took the exact setup from the checklist service. Also trying on a fresh clone of Slic-Starter and getting same errors and warnings, I am I missing a step? I am trying to do local development only.

Ran this command SLIC_STAGE=local sls offline start --migrate true from my custom service directory

Serverless: Deprecation warning: Support for Node.js versions below v12 will be dropped with next major release. Please upgrade at https://nodejs.org/en/
            More Info: https://www.serverless.com/framework/docs/deprecations/#OUTDATED_NODEJS
Serverless: Deprecation warning: Variables resolver reports following resolution errors:
              - Cannot resolve variable at "provider.region": Value not found at "env" source,
              - Cannot resolve variable at "custom.nsDomain": Value not found at "env" source,
              - Cannot resolve variable at "custom.domainPrefixes": Cannot load file from outside of a project directory (configure "projectDir" to extend project boundary),
              - Cannot resolve variable at "resources.Resources": Cannot parse "sls-resources.yml.js": Approached a JS function resolver, confirm it's updated to work with a new parser by setting "variablesResolutionMode: 20210326" in service config. Falling back to old resolver
            From a next major this will be communicated with a thrown error.
            Set "variablesResolutionMode: 20210326" in your service config, to adapt to new behavior now
            More Info: https://www.serverless.com/framework/docs/deprecations/#NEW_VARIABLES_RESOLVER
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Deprecation warning: CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:
             - ServerlessWebpack for "out"
             - ServerlessDynamodbLocal for "online", "port", "cors", "inMemory", "dbPath", "sharedDb", "delayTransientStatuses", "optimizeDbBeforeStartup", "migrate", "seed", "convertEmptyValues", "localPath"
             - ServerlessOffline for "apiKey", "corsAllowHeaders", "corsAllowOrigin", "corsDisallowCredentials", "corsExposedHeaders", "disableCookieValidation", "enforceSecureCookies", "hideStackTraces", "host", "httpPort", "httpsProtocol", "lambdaPort", "noPrependStageInUrl", "noAuth", "ignoreJWTSignature", "noTimeout", "prefix", "printOutput", "resourceRoutes", "useChildProcesses", "useWorkerThreads", "websocketPort", "webSocketHardTimeout", "webSocketIdleTimeout", "useDocker", "layersDir", "dockerReadOnly", "functionCleanupIdleTimeSeconds", "allowCache"
             - Prune for "number", "stage", "region", "function", "layer", "includeLayers", "dryRun"
            Please report this issue in plugin issue tracker.
            Starting with next major release, this will be communicated with a thrown error.
            More Info: https://www.serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA
Serverless: Deprecation warning: Detected unrecognized CLI options: "--migrate".
            Starting with the next major, Serverless Framework will report them with a thrown error
            More Info: https://www.serverless.com/framework/docs/deprecations/#UNSUPPORTED_CLI_OPTIONS
Serverless: Deprecation warning: Unresolved variable references will be communicated with a thrown error, starting from next major
            More Info: https://www.serverless.com/framework/docs/deprecations/#VARIABLES_ERROR_ON_UNRESOLVED
 
 Serverless Warning --------------------------------------
 
  A valid environment variable to satisfy the declaration 'env:TARGET_REGION' could not be found.
 
 
 Serverless Warning --------------------------------------
 
  A valid environment variable to satisfy the declaration 'env:SLIC_NS_DOMAIN' could not be found.
 
 
 Serverless Warning --------------------------------------
 
  A valid service attribute to satisfy the declaration 'self:provider.region' could not be found.
 
 
 Serverless Warning --------------------------------------
 
  A valid service attribute to satisfy the declaration 'self:provider.region' could not be found.
 
 
 Serverless Error ----------------------------------------
 
  Trying to populate non string value into a string for variable ${self:provider.region}. Please make sure the value of the property is a string.
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com
 
  Your Environment Information ---------------------------
     Operating System:          linux
     Node Version:              10.24.1
     Framework Version:         2.30.3 (local)
     Plugin Version:            4.5.1
     SDK Version:               4.2.0
     Components Version:        3.7.5
     ```

from slic-starter.

Nikola-Milovic avatar Nikola-Milovic commented on June 2, 2024

Ping, if anyone can pinch in, it's probably a stupid mistake on my part.

from slic-starter.

eoinsha avatar eoinsha commented on June 2, 2024

Hi @Nikola-Milovic. Try setting TARGET_REGION=eu-west-1 (or any other region) when running the command.

from slic-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.