shamsup / remix-starter-serverless Goto Github PK
View Code? Open in Web Editor NEWA template for deploying Remix to AWS with the Serverless framework
A template for deploying Remix to AWS with the Serverless framework
It seems like serverless-lift has a solution to forward the Host header https://github.com/getlift/lift/blob/master/src/constructs/aws/ServerSideWebsite.ts#L448
Perhaps using that plugin directly in your template could help or drawing from their source.
The README says "If you want to use the Serverless Dashboard, you'll need to configure the Serverless CLI and add the app key to your serverless.yml file." Serverless presents several options, including "Node express.js API" and "Node REST API." Which type of app should I create, assuming I'm adapting this for Remix 2.0?
Thanks for the shared work. Although I can access offline, and everything works, when I try to deploy, I get a 404 when trying to access the created bucket. It seems like static
redirection doesn't work properly.
The S3 bucket is created properly and with the same files that are requested by the client.
I'm still having an issue, and I'm not sure if it's related to this repo or general Serverless knowledge and integration with AWS / S3.
I followed all the instructions with this repo to deploy the basic app to AWS. I made all the config switches for OriginCustomHeaders
and custom::dev::host
after the first deploy.
I am still getting 404
errors on the assets for remix and .ico
files for the example code. Is there something on the AWS side I need to do? I tried granting everyone
permissions for list
and read
.
Awesome work, thanks for this.
I see that on deploy the changes aren't visible right away. Looking at getlift/lift, I see that on deploy they call the following: https://github.com/getlift/lift/blob/master/src/classes/aws.ts#L37
I am unsure how to call a function on deploy, is that possible only because life is serverless plugin? Thought you might have an idea.
I've been following the example from the README and when I uncomment the OriginCustomHeaders
section, I get the error below when running sls deploy --stage dev
or npm run deploy
which is set to sls deploy
:
- Cannot resolve variable at "resources.Resources.CDN.Properties.DistributionConfig.Origins.1.OriginCustomHeaders.0.HeaderValue": Value not found at "self" source
my dev settings for host are set from the initial output of sls info --verbose
.
I am completely new SLS, so I'm not sure where I'm going wrong variable settings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.