{"id":22039595,"url":"https://github.com/iliasbhal/serverless-static","last_synced_at":"2025-05-07T21:46:57.823Z","repository":{"id":102041057,"uuid":"120063698","full_name":"iliasbhal/serverless-static","owner":"iliasbhal","description":":package: serverless framework plugin - serve / deploy static files that works with serverless-offline plugin","archived":false,"fork":false,"pushed_at":"2020-01-04T07:00:06.000Z","size":564,"stargazers_count":13,"open_issues_count":6,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-07T21:46:51.166Z","etag":null,"topics":["aws-lambda","localhost","s3","serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iliasbhal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-03T05:51:43.000Z","updated_at":"2022-08-27T06:16:07.000Z","dependencies_parsed_at":"2023-07-11T06:17:35.975Z","dependency_job_id":null,"html_url":"https://github.com/iliasbhal/serverless-static","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iliasbhal%2Fserverless-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iliasbhal%2Fserverless-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iliasbhal%2Fserverless-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iliasbhal%2Fserverless-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iliasbhal","download_url":"https://codeload.github.com/iliasbhal/serverless-static/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961858,"owners_count":21832192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","localhost","s3","serverless"],"created_at":"2024-11-30T11:11:21.610Z","updated_at":"2025-05-07T21:46:57.815Z","avatar_url":"https://github.com/iliasbhal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :package: :sparkles: Serverless Static Plugin\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n\n## Note\nDeploy functionality is in active development, it soon will be available\n\n## 1.install the plugin\nFirst, add Serverless Static to your project, be sure that you already have the [serverless-offline](https://github.com/dherault/serverless-offline) plugin already installed\n\n```\n$ npm install serverless-static --save-dev\n```\n\u003e or, if serverless-offline is not already installed\n```\n$ npm install serverless-static serverless-offline --save-dev\n```\n## 2. add it to your serverless.yml file\n\nThen inside your project's serverless.yml file add following entry to the plugins section: serverless-static. If there is no plugin section you will need to add it to the file.\n\nIt should look something like this:\n\n```YAML\nplugins:\n  - serverless-offline\n  - serverless-static \n```\n\n## 3. customize behavior (optional)\n```YAML\ncustom:\n  static:\n    path: ./public # select the folder you want to serve\n    port: 8000 # select a specific port \n\n# this will overide default behavior\n# it will serve the folder ./public\n# it will serve it throught localhost:8000\n```\n\n\n\u003c!-- ## Todo\n\n- [ ] support for serving multiple directories\n- [ ] deploy / sync folder and bucket --\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiasbhal%2Fserverless-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filiasbhal%2Fserverless-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiasbhal%2Fserverless-static/lists"}