Coder Social home page Coder Social logo

adnanrahic / serverless-side-rendering-react-next Goto Github PK

View Code? Open in Web Editor NEW
121.0 7.0 34.0 1.06 MB

Sample repo for setting up Next and React on AWS Lambda with the Serverless Framework.

Home Page: https://dev.to/adnanrahic/a-crash-course-on-serverless-side-rendering-with-reactjs-nextjs-and-aws-lambda-13ed

License: MIT License

JavaScript 100.00%
react next serverless serverless-framework aws-lambda

serverless-side-rendering-react-next's Introduction

Serverless-Side Rendering React Next

Sample repo for setting up Next and React on AWS Lambda with the Serverless Framework.

serverless-side-rendering-react-next's People

Contributors

adnanrahic avatar dependabot[bot] avatar squillace91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

serverless-side-rendering-react-next's Issues

getting 403 response for all resources

I deployed forked app to aws without custom domains but getting 403 in console on all resources.

here is my serverless.yml

service: tenisliga-chat

provider:
name: aws
runtime: nodejs8.10
stage: ${self:custom.secrets.NODE_ENV}
region: us-east-1
environment:
NODE_ENV: ${self:custom.secrets.NODE_ENV}

functions:
server:
handler: index.server
events:
- http: ANY /
- http: ANY /{proxy+}

plugins:

  • serverless-apigw-binary

custom:
secrets: ${file(secrets.json)}
apigwBinary:
types:
- '/'

and here is link to screenshot of the console

can anybody point me to right direction

Read-only error on Lambda

Hello,

I can't run the code on lambda as it tries to create the .next directory inside /var/task/ which is in read only.
I tried to change the path using next config with distDir but it doesn't allow a full path value: I tried /tmp/.next/

Offline

I see your latest commit was removing offline, I tried adding it back in and running serverless offline, but ended up with the following error. Did you remove it because it wasn't working?

(node:51879) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'waitUntilReloaded' of undefined

Npm run deploy returns Error: Could not set up basepath mapping.

steps:

  1. clone repo
  2. install dependencies
  3. run deploy script

error message:

Error: Could not set up basepath mapping. Try running sls create_domain first.
Error: Error: 'reactssr.yourdomain.com' could not be found in API Gateway.
NotFoundException: Invalid domain name identifier specified

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

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.