import { expect } from 'chai'; import netlifyAdapter from '../../dist/index.js'; import { loadFixture, testIntegration } from './test-utils.js'; describe('Dynamic pages', () => { /** @type {import('./test-utils').Fixture} */ let fixture; before(async () => { fixture = await loadFixture({ root: new URL('./fixtures/dynamic-route/', import.meta.url).toString(), output: 'server', adapter: netlifyAdapter({ dist: new URL('./fixtures/dynamic-route/dist/', import.meta.url), }), site: `http://example.com`, integrations: [testIntegration()], }); await fixture.build(); }); it('Dynamic pages are included in the redirects file', async () => { const redir = await fixture.readFile('/_redirects'); expect(redir).to.match(/\/products\/:id/); }); it('Prerendered routes are also included using placeholder syntax', async () => { const redir = await fixture.readFile('/_redirects'); expect(redir).to.include('/pets/:cat /pets/:cat/index.html 200'); expect(redir).to.include('/pets/:dog /pets/:dog/index.html 200'); expect(redir).to.include('/pets /.netlify/functions/entry 200'); }); }); astro-icons Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/examples/docs/public/make-scrollable-code-focusable.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-10-03[ci] formatGravatar matthewp 5-6/+6
2022-10-03Improve rendering perf (#4956)Gravatar Matthew Phillips 8-31/+73
2022-10-03Suppress eslint warnings (#4953)Gravatar Bjorn Lu 3-3/+14
2022-10-03[ci] formatGravatar bluwy 1-1/+1
2022-10-03Refactor ViteConfigWithSSR type (#4952)Gravatar Bjorn Lu 7-20/+20
2022-10-01[ci] release (#4945)@astrojs/image@0.9.11.3.0Gravatar Fred K. Bot 3-6/+7
2022-09-30Astro image cache dependency fix scottaw66 (#4944)Gravatar Scott Willsey 3-3/+7
2022-09-30[ci] release (#4943)astro@1.4.2Gravatar Fred K. Bot 29-60/+58
2022-09-30[ci] formatGravatar natemoo-re 1-1/+1
2022-09-30Convert HTMLString to regular string, preventing hydration script fro… (#4932)Gravatar Matthew Phillips 2-1/+6
2022-10-01Fix missing language tag on README code block (#4940)Gravatar Chris Swithinbank 1-1/+1
2022-09-30[ci] formatGravatar natemoo-re 2-2/+2
2022-09-30P5: fix MDX memory leak (#4939)Gravatar Nate Moore 10-1/+84
2022-09-30chore: delete .stackblitzrc files from examples (#4922)Gravatar Nate Moore 22-132/+0