diff --git a/__tests__/e2e/data-loading/data.test.ts b/__tests__/e2e/data-loading/data.test.ts index fafc403a..21cfa061 100644 --- a/__tests__/e2e/data-loading/data.test.ts +++ b/__tests__/e2e/data-loading/data.test.ts @@ -52,9 +52,7 @@ describe('static data file support in vite 3', () => { await page.waitForFunction( () => document.querySelector('pre#basic')?.textContent === - JSON.stringify([{ a: false }, { b: true }], null, 2), - undefined, - { timeout: 3000 } + JSON.stringify([{ a: false }, { b: true }], null, 2) ) } finally { await fs.writeFile(a, JSON.stringify({ a: true }, null, 2) + '\n') @@ -67,9 +65,7 @@ describe('static data file support in vite 3', () => { await page.waitForFunction( () => document.querySelector('pre#basic')?.textContent === - JSON.stringify([{ a: true }], null, 2), - undefined, - { timeout: 3000 } + JSON.stringify([{ a: true }], null, 2) ) err = false } finally { @@ -83,9 +79,7 @@ describe('static data file support in vite 3', () => { await page.waitForFunction( () => document.querySelector('pre#basic')?.textContent === - JSON.stringify([{ a: true }, { b: false }], null, 2), - undefined, - { timeout: 3000 } + JSON.stringify([{ a: true }, { b: false }], null, 2) ) } finally { await fs.writeFile(b, JSON.stringify({ b: true }, null, 2) + '\n') diff --git a/docs/en/guide/deploy.md b/docs/en/guide/deploy.md index ed6331c1..29d2e1b4 100644 --- a/docs/en/guide/deploy.md +++ b/docs/en/guide/deploy.md @@ -294,6 +294,10 @@ You can deploy your VitePress website on [Kinsta](https://kinsta.com/static-site You can deploy your VitePress project to [Stormkit](https://www.stormkit.io) by following these [instructions](https://stormkit.io/blog/how-to-deploy-vitepress). +### CloudRay + +You can deploy your VitePress project with [CloudRay](https://cloudray.io/) by following these [instructions](https://cloudray.io/articles/how-to-deploy-vitepress-site). + ### Nginx Here is a example of an Nginx server block configuration. This setup includes gzip compression for common text-based assets, rules for serving your VitePress site's static files with proper caching headers as well as handling `cleanUrls: true`.