Episode 02 • Creating Svelte, Sapper and WordPress Website

Post Details And Environment Variables

In this episode of Creating Svelte, Sapper and WordPress sites we are going to link our post list to the details page of each post, and also learn how to setup environment variables.

Now we are going to link the post list that we created in the previous episode to the detail page of every post using Sappers dynamic routing and slugs that we get from our WordPress API. We are also going to learn how to use environmental variables to define important data that we don't want to hard code in our Svelte app, or that may change between local and production environment.

Download code

Wanna ask a question about this video?

Like This Video?

Consider supporting me on Patreon.

...or you can share this video, that also helps ;)

  • Episode 01 • Duration 12:46

    Fetching The Posts

  • Episode 02 • Duration 16:44

    Post Details And Environment Variables

  • Episode 03 • Duration 20:53

    Pagination And Sass Support

  • Episode 04 • Duration 22:15

    Handling Categories

  • Episode 05 • Duration 28:50

    Refactoring - Making It SSR Ready

  • Episode 06 • Duration 15:25

    Navigation And Pages

  • Episode 01 • Duration 12:46

    Fetching The Posts

  • Episode 02 • Duration 16:44

    Post Details And Environment Variables

  • Episode 03 • Duration 20:53

    Pagination And Sass Support

  • Episode 04 • Duration 22:15

    Handling Categories

  • Episode 05 • Duration 28:50

    Refactoring - Making It SSR Ready

  • Episode 06 • Duration 15:25

    Navigation And Pages