{"id":18352471,"url":"https://github.com/frontity/frontity-embedded","last_synced_at":"2025-04-06T11:32:53.904Z","repository":{"id":43463928,"uuid":"248029634","full_name":"frontity/frontity-embedded","owner":"frontity","description":"Embedded Mode plugin for Frontity sites","archived":true,"fork":false,"pushed_at":"2022-09-21T08:31:09.000Z","size":176,"stargazers_count":23,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-05T00:41:29.383Z","etag":null,"topics":["embedded","frontity","mode","wordpress"],"latest_commit_sha":null,"homepage":"https://frontity.org","language":"PHP","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/frontity.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}},"created_at":"2020-03-17T17:17:13.000Z","updated_at":"2025-02-06T11:42:47.000Z","dependencies_parsed_at":"2023-01-18T14:30:27.062Z","dependency_job_id":null,"html_url":"https://github.com/frontity/frontity-embedded","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/frontity%2Ffrontity-embedded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frontity%2Ffrontity-embedded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frontity%2Ffrontity-embedded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frontity%2Ffrontity-embedded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frontity","download_url":"https://codeload.github.com/frontity/frontity-embedded/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"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":["embedded","frontity","mode","wordpress"],"created_at":"2024-11-05T21:36:06.092Z","updated_at":"2025-04-06T11:32:53.494Z","avatar_url":"https://github.com/frontity.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontity - Embedded Mode\n\nFor a full explanation please refer to the [Embedded mode documentation](https://api.frontity.org/frontity-plugins/embedded-mode). If you have any questions related to the plugin feel free to share them in [Frontity community forum](https://community.frontity.org/).\n\n## Install\n\n1. First of all you have to install the plugin. [Download the plugin from GitHub](https://github.com/frontity/frontity-embedded/archive/refs/heads/master.zip) and upload it to your web server. For a more detailed explanation, WordPress explains how to do this [on this guide](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation).\n2. Once installed, you have to activate it, go to Settings -\u003e Frontity Embedded Mode, and define the proper Frontity Server Url. and it will be running!\n\n\u003e Revisions are necessary to do post previews, so make sure those are activated for both your posts, pages and any custom post types.\n\n## Environment Variables\n\nYou can also use an environment variable instead of changing the URL in the plugin interface.\n\n```php\n\u003e FRONTITY_SERVER=https://myfrontityserver.com\n```\n\n## WordPress Constant\n\nLastly a PHP constant can be defined. This would usually be done in the wp-config.php file.\n\n```\ndefine( 'FRONTITY_SERVER', 'https://myfrontityserver.com' );\n```\n\nNote that if the PHP constant exists, it takes precedence over both the environment variable and the settings page setting.\n\n## Static Assets\n\nIf you need, you can change the folder or URL where your static assets are stored using the `--public-path` option of the `npx frontity build` command.\n\n### Example: Frontity in the same WordPress server\n\nIf you are using the same server for both WordPress and Frontity, and your Frontity project is at `/wp-content/frontity`, your static folder will be at `https://yourdomain.com/wp-content/frontity/build/static`.\n\nYou can change the folder when you run `npx frontity build` like this:\n\n```bash\n\u003e npx frontity build --public-path /wp-content/frontity/build/static\n```\n\n### Example: Frontity in an external server\n\nIf you deployed Frontity in an external hosting service, like for example Vercel, you can use the `--public-path` option to point directly to the Vercel URL:\n\n```bash\n\u003e npx frontity build --public-path https://myfrontityapp.now.sh/static\n```\n\n## Local Development\n\nIf you want to use the Embedded mode while you are developing in your local environment, you can do so by using the `--public-path` parameter in the `npx frontity dev` command as well:\n\n```bash\n\u003e npx frontity dev --public-path http://localhost:3000/static\n```\n\n---\n\n## Frontity Channels 🌎\n\n[![Community Forum Topics](https://img.shields.io/discourse/topics?color=blue\u0026label=community%20forum\u0026server=https%3A%2F%2Fcommunity.frontity.org%2F)](https://community.frontity.org/) [![Twitter: frontity](https://img.shields.io/twitter/follow/frontity.svg?style=social)](https://twitter.com/frontity) ![Frontity Github Stars](https://img.shields.io/github/stars/frontity/frontity?style=social)\n\nWe have different channels at your disposal where you can find information about the Frontity project, discuss it and get involved:\n\n- 📖 **[Docs](https://docs.frontity.org)**: this is the place to learn how to build amazing sites with Frontity.\n- 👨‍👩‍👧‍👦 **[Community](https://community.frontity.org/)**: use our forum to [ask any questions](https://community.frontity.org/c/dev-talk-questions), feedback and meet great people. This is your place too to share [what are you building with Frontity](https://community.frontity.org/c/community/showcases/19)!\n- 🐞 **[GitHub](https://github.com/frontity)**: we use GitHub for bugs and pull requests. Questions are answered in the [community forum](https://community.frontity.org/)!\n- 🗣 **Social media**: a more informal place to interact with Frontity users, reach out to us on [Twitter](https://twitter.com/frontity).\n- 💌 **Newsletter**: do you want to receive the latest framework updates and news? Subscribe [here](https://frontity.org/)\n\n### » Get involved 🤗\n\nGot questions or feedback about Frontity? We'd love to hear from you. Use our [community forum](https://community.frontity.org) yo ! ❤️\n\nFrontity also welcomes contributions. There are many ways to support the project! If you don't know where to start, this guide might help: [How to contribute?](https://docs.frontity.org/contributing/how-to-contribute)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontity%2Ffrontity-embedded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrontity%2Ffrontity-embedded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontity%2Ffrontity-embedded/lists"}