From 40c3dd401fbbd924ccf2e42a601adf577ef42a02 Mon Sep 17 00:00:00 2001 From: serverless-devs Date: Fri, 10 Nov 2023 10:32:23 +0800 Subject: [PATCH] create s.yaml content --- s.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 s.yaml diff --git a/s.yaml b/s.yaml new file mode 100644 index 0000000..b773b4c --- /dev/null +++ b/s.yaml @@ -0,0 +1,46 @@ +edition: 1.0.0 +name: my-framework-app +access: default +services: + framework: + component: fc + props: + region: cn-beijing + service: + name: serverless-devs-nuxt-ijustcc + function: + name: nuxt-ijustcc-86bc + description: Initialize + runtime: custom.debian10 + environmentVariables: + PATH: >- + /opt/nodejs18/bin:/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin:/opt/bin:/code:/code/bin + NODE_PATH: /opt/nodejs/node_modules + LD_LIBRARY_PATH: >- + /code:/code/lib:/usr/local/lib:/opt/lib:/opt/php8.1/lib:/opt/php8.0/lib:/opt/php7.2/lib + layers: + - acs:fc:cn-beijing:official:layers/Nodejs18/versions/1 + memorySize: 128 + cpu: 0.1 + timeout: 60 + codeUri: ./ + diskSize: 512 + caPort: 9000 + customRuntimeConfig: + command: + - npm + args: + - run + - start + triggers: + - name: httpTrigger + type: http + config: + authType: anonymous + methods: + - GET + - POST + - PUT + - DELETE + - HEAD + - PATCH